diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-19 13:31:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-19 13:31:03 +0000 |
commit | db16068ce0fd43d44ddd3a5ebe5e11d7d63fd8e4 (patch) | |
tree | 932496c071b451ed0bec86184a3b92f5bd1f14d4 /gc.c | |
parent | 79d557ffcdf189e42f6fb729402d787624bd69b2 (diff) | |
download | ruby-db16068ce0fd43d44ddd3a5ebe5e11d7d63fd8e4.tar.gz |
gc.c: suppress warning
* gc.c (heap_assign_slot): suppress implicit conversion warning.
delta is not greater than sizeof(RVALUE).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -761,7 +761,7 @@ heap_assign_slot(rb_objspace_t *objspace) /* adjust obj_limit (object number available in this slot) */ start = (RVALUE*)((VALUE)slot_body + sizeof(struct heap_slot_header)); if ((VALUE)start % sizeof(RVALUE) != 0) { - int delta = sizeof(RVALUE) - ((VALUE)start % sizeof(RVALUE)); + int delta = (int)(sizeof(RVALUE) - ((VALUE)start % sizeof(RVALUE))); start = (RVALUE*)((VALUE)start + delta); limit = (HEAP_SIZE - (size_t)((VALUE)start - (VALUE)slot_body))/sizeof(RVALUE); } |