From 4d9d6faf0d5890eca2b6407fe53531ea19450b3d Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Wed, 19 Jun 2019 17:50:20 +0900 Subject: Remove unneeded statement in `SET_OBJ_VALUE` with `boxing_word.h` `(r).value.bp` and `v` have the same value due to assignment of the line preceding the removed line. --- include/mruby/boxing_word.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include') diff --git a/include/mruby/boxing_word.h b/include/mruby/boxing_word.h index 2fb84052a..f16968a1f 100644 --- a/include/mruby/boxing_word.h +++ b/include/mruby/boxing_word.h @@ -141,7 +141,6 @@ mrb_type(mrb_value o) #define SET_OBJ_VALUE(r,v) do { \ (r).w = 0; \ (r).value.p = (v); \ - if ((r).value.bp) (r).value.bp->tt = ((struct RObject*)(v))->tt; \ } while (0) #endif /* MRUBY_BOXING_WORD_H */ -- cgit v1.2.3