summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authordearblue <[email protected]>2020-07-16 23:11:30 +0900
committerHiroshi Mimaki <[email protected]>2020-07-29 09:05:29 +0900
commitcdf45438f03379292e71f5c16e7b2fe221b8b272 (patch)
tree48b0f3230a61e6634ec34078c367ffa83ff29718 /include
parentb6b9c57f247a26fb5dbea129cd81fcc9b7d485a3 (diff)
downloadmruby-cdf45438f03379292e71f5c16e7b2fe221b8b272.tar.gz
mruby-cdf45438f03379292e71f5c16e7b2fe221b8b272.zip
Fixed shift width for `MRB_ENV_SET_BIDX()`
ref c07f24cd1 and close #5035
Diffstat (limited to 'include')
-rw-r--r--include/mruby/proc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/proc.h b/include/mruby/proc.h
index ef5357d5d..12013c3ae 100644
--- a/include/mruby/proc.h
+++ b/include/mruby/proc.h
@@ -34,7 +34,7 @@ struct REnv {
#define MRB_ENV_HEAP_P(e) ((e)->flags & MRB_ENV_HEAPED)
#define MRB_ENV_ONSTACK_P(e) (((e)->flags & MRB_ENV_CLOSED) == 0)
#define MRB_ENV_BIDX(e) (((e)->flags >> 8) & 0xff)
-#define MRB_ENV_SET_BIDX(e,idx) ((e)->flags = (((e)->flags & ~(0xff<<8))|((unsigned int)(idx) & 0xff)<<10))
+#define MRB_ENV_SET_BIDX(e,idx) ((e)->flags = (((e)->flags & ~(0xff<<8))|((unsigned int)(idx) & 0xff)<<8))
void mrb_env_unshare(mrb_state*, struct REnv*);