summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-19 13:31:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-19 13:31:03 +0000
commitdb16068ce0fd43d44ddd3a5ebe5e11d7d63fd8e4 (patch)
tree932496c071b451ed0bec86184a3b92f5bd1f14d4
parent79d557ffcdf189e42f6fb729402d787624bd69b2 (diff)
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
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index a959873107..6be650f840 100644
--- a/gc.c
+++ b/gc.c
@@ -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);
}