summaryrefslogtreecommitdiffhomepage
path: root/src/etc.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-08-14 13:16:34 +0900
committerYukihiro Matsumoto <[email protected]>2012-08-14 13:16:34 +0900
commit7d02df3016b0c6eb3f4ee945198772cf4ebca3fa (patch)
treeaf4c35ee567e9be3e2ef6ca0c34dbd10440550bc /src/etc.c
parente74600c919cdadab1b4e605e50181f8cdafe7ab3 (diff)
downloadmruby-7d02df3016b0c6eb3f4ee945198772cf4ebca3fa.tar.gz
mruby-7d02df3016b0c6eb3f4ee945198772cf4ebca3fa.zip
NaN boxing
Diffstat (limited to 'src/etc.c')
-rw-r--r--src/etc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc.c b/src/etc.c
index d14498d9c..7dfa044f6 100644
--- a/src/etc.c
+++ b/src/etc.c
@@ -140,7 +140,7 @@ float_id(mrb_float f)
mrb_int
mrb_obj_id(mrb_value obj)
{
- mrb_int tt = obj.tt;
+ mrb_int tt = mrb_type(obj);
#define MakeID2(p,t) (((intptr_t)(p))^(t))
#define MakeID(p) MakeID2(p,tt)