diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-29 08:22:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-29 08:22:33 +0000 |
commit | e3ba618fa14633860ab0d6124aed4bc7fb198fe2 (patch) | |
tree | 9754cb84db365dc7892b138c8b31645514871744 | |
parent | 9a8b21b3b66b861bda48b1e7131c0fd41e35deb7 (diff) | |
download | ruby-e3ba618fa14633860ab0d6124aed4bc7fb198fe2.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |