remove warning on NAN_BOXING

parent f645bf1b
...@@ -72,16 +72,18 @@ The value below allows about 60000 recursive calls in the simplest case. */ ...@@ -72,16 +72,18 @@ The value below allows about 60000 recursive calls in the simplest case. */
static inline void static inline void
stack_clear(mrb_value *from, size_t count) stack_clear(mrb_value *from, size_t count)
{ {
#ifndef MRB_NAN_BOXING
const mrb_value mrb_value_zero = { { 0 } }; const mrb_value mrb_value_zero = { { 0 } };
while (count-- > 0) { while (count-- > 0) {
#ifndef MRB_NAN_BOXING
*from++ = mrb_value_zero; *from++ = mrb_value_zero;
}
#else #else
while (count-- > 0) {
SET_NIL_VALUE(*from); SET_NIL_VALUE(*from);
from++; from++;
#endif
} }
#endif
} }
static inline void static inline void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment