summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-06-19 17:50:20 +0900
committerKOBAYASHI Shuji <[email protected]>2019-06-19 17:50:20 +0900
commit4d9d6faf0d5890eca2b6407fe53531ea19450b3d (patch)
tree94dbac21a781cfc9048a9be6f51e5fdb3d406d39 /include
parentc53b7cedccf7f5260dc8b4f88c5f93ea550bc5df (diff)
downloadmruby-4d9d6faf0d5890eca2b6407fe53531ea19450b3d.tar.gz
mruby-4d9d6faf0d5890eca2b6407fe53531ea19450b3d.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/boxing_word.h1
1 files changed, 0 insertions, 1 deletions
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 */