diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-29 12:21:49 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-29 12:21:49 +0900 |
| commit | 48e82d7c777380a3e9035c654c5c417b8ba1a36c (patch) | |
| tree | 936f8ee71b9c8f7352152f550b5faffe6169eddf /src/etc.c | |
| parent | 88c0d0cf9aef4f23edeb41c1d3fd03b8aa810647 (diff) | |
| download | mruby-48e82d7c777380a3e9035c654c5c417b8ba1a36c.tar.gz mruby-48e82d7c777380a3e9035c654c5c417b8ba1a36c.zip | |
cast intptr_t to mrb_int to pacify compiler warning; close #2148
Diffstat (limited to 'src/etc.c')
| -rw-r--r-- | src/etc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -108,7 +108,7 @@ mrb_obj_id(mrb_value obj) { mrb_int tt = mrb_type(obj); -#define MakeID2(p,t) (((intptr_t)(p))^(t)) +#define MakeID2(p,t) (mrb_int)(((intptr_t)(p))^(t)) #define MakeID(p) MakeID2(p,tt) switch (tt) { |
