summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYuichi Nishiwaki <[email protected]>2013-08-04 01:07:30 -0700
committerYuichi Nishiwaki <[email protected]>2013-08-04 01:07:30 -0700
commit94a6d8380f460c87f89870d6b71db2f262eacaf6 (patch)
tree5868766c796b0d7c3a62d33251fc7ea037ed4824 /include
parent8854ecb629726e24aef03183b36fe3b1314dfb91 (diff)
downloadmruby-94a6d8380f460c87f89870d6b71db2f262eacaf6.tar.gz
mruby-94a6d8380f460c87f89870d6b71db2f262eacaf6.zip
bugfix: the bit mask was smaller than the size it should be
Diffstat (limited to 'include')
-rw-r--r--include/mruby/value.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h
index 8971aca41..48fca796d 100644
--- a/include/mruby/value.h
+++ b/include/mruby/value.h
@@ -147,7 +147,7 @@ typedef struct mrb_value {
#define mrb_tt(o) (((o).value.ttt & 0xfc000)>>14)
#define mrb_mktt(tt) (0xfff00000|((tt)<<14))
#define mrb_type(o) ((uint32_t)0xfff00000 < (o).value.ttt ? mrb_tt(o) : MRB_TT_FLOAT)
-#define mrb_value_p(o) ((void*)((((uint64_t)0x3ffffffffff)&((uint64_t)((o).value.p)))<<2))
+#define mrb_value_p(o) ((void*)((((uint64_t)0x3fffffffffff)&((uint64_t)((o).value.p)))<<2))
#define mrb_float(o) (o).f
#define MRB_SET_VALUE(o, tt, attr, v) do {\