diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-15 12:44:31 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-15 13:02:15 +0900 |
| commit | 8619ba6a3850145981c0ee6e86e12a7e25946705 (patch) | |
| tree | 1a953bfcf0facdfee0468e33302daeabaa5f0b64 /src/vm.c | |
| parent | e5e7bd29efd49c4c207da2985610c9ad878d40b0 (diff) | |
| download | mruby-8619ba6a3850145981c0ee6e86e12a7e25946705.tar.gz mruby-8619ba6a3850145981c0ee6e86e12a7e25946705.zip | |
Use `struct` initializer instead of `memset`.
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -86,14 +86,10 @@ void mrb_method_missing(mrb_state *mrb, mrb_sym name, mrb_value self, mrb_value static inline void stack_clear(mrb_value *from, size_t count) { -#ifdef MRB_NAN_BOXING while (count-- > 0) { SET_NIL_VALUE(*from); from++; } -#else - memset(from, 0, sizeof(mrb_value)*count); -#endif } static inline void |
