summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-29 08:22:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-29 08:22:33 +0000
commite3ba618fa14633860ab0d6124aed4bc7fb198fe2 (patch)
tree9754cb84db365dc7892b138c8b31645514871744
parent9a8b21b3b66b861bda48b1e7131c0fd41e35deb7 (diff)
compile.c: suppress a warning
* compile.c (compile_data_alloc): cast to suppress a warning by apple gcc-4.2. it doesn't cause an error but a warning in spite of -Werror=shorten-64-to-32 option, for some reason. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 903ff79d469..1cd78c7294c 100644
--- a/compile.c
+++ b/compile.c
@@ -612,7 +612,7 @@ compile_data_alloc(rb_iseq_t *iseq, size_t size)
}
ptr = (void *)&storage->buff[storage->pos];
- storage->pos += size;
+ storage->pos += (int)size;
return ptr;
}