diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-10-02 17:59:01 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-10-02 17:59:01 +0900 |
| commit | 83992ee1632f426dff8f9c79709692bf6312403c (patch) | |
| tree | e15ddd08230a5fc4b226d07570476892486d2664 /include | |
| parent | 906b62d50fa32395618175b0971bb0466dff9974 (diff) | |
| download | mruby-83992ee1632f426dff8f9c79709692bf6312403c.tar.gz mruby-83992ee1632f426dff8f9c79709692bf6312403c.zip | |
cast MRB_ENV_STACK_LEN to (mrb_int); ref #2600
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/proc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mruby/proc.h b/include/mruby/proc.h index fe5a1d2f6..5441cf767 100644 --- a/include/mruby/proc.h +++ b/include/mruby/proc.h @@ -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) |
