diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-15 02:27:19 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-15 02:27:19 +0900 |
| commit | 16b34d187ae668eaf203efaeccc1d7c5a05142f5 (patch) | |
| tree | 0cc5dd950f1a39a7b4cef2aa3750955305697efe | |
| parent | f645bf1b0c122f45c628d45e13d1ec3852028f99 (diff) | |
| download | mruby-16b34d187ae668eaf203efaeccc1d7c5a05142f5.tar.gz mruby-16b34d187ae668eaf203efaeccc1d7c5a05142f5.zip | |
remove warning on NAN_BOXING
| -rw-r--r-- | src/vm.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -72,16 +72,18 @@ The value below allows about 60000 recursive calls in the simplest case. */ static inline void stack_clear(mrb_value *from, size_t count) { +#ifndef MRB_NAN_BOXING const mrb_value mrb_value_zero = { { 0 } }; while (count-- > 0) { -#ifndef MRB_NAN_BOXING *from++ = mrb_value_zero; + } #else + while (count-- > 0) { SET_NIL_VALUE(*from); from++; -#endif } +#endif } static inline void |
