cast MRB_ENV_STACK_LEN to (mrb_int); ref #2600

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-10-02 17:59:01 +09:00
parent 906b62d50f
commit 83992ee163
4 changed files with 9 additions and 5 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ struct REnv {
ptrdiff_t cioff;
};
#define MRB_ENV_STACK_LEN(e) ((e)->flags)
#define MRB_SET_ENV_STACK_LEN(e,len) (e)->flags = (unsigned int)(len)
#define MRB_ENV_STACK_LEN(e) ((mrb_int)(e)->flags)
#define MRB_ENV_UNSHARE_STACK(e) ((e)->cioff = -1)
#define MRB_ENV_STACK_SHARED_P(e) ((e)->cioff >= 0)