summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-26 09:31:17 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-26 09:31:17 +0000
commitd462261395534207d71d07f4a47a6860cf9349bb (patch)
treead35b94e2090a61634383657c8a605e052e9bd9a /array.c
parentd320b2d9e9d4d6dbb73c85df433f8b5559f7d716 (diff)
* array.c (ary_memcpy): cast to int to suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index 8ab7128..3d999e8 100644
--- a/array.c
+++ b/array.c
@@ -69,7 +69,7 @@ ary_memcpy(VALUE ary, long beg, long argc, const VALUE *argv)
{
#if 1
if (OBJ_PROMOTED(ary)) {
- if (argc > (128/sizeof(VALUE)) /* is magic number (cache line size) */) {
+ if (argc > (int)(128/sizeof(VALUE)) /* is magic number (cache line size) */) {
rb_gc_writebarrier_remember_promoted(ary);
RARRAY_PTR_USE(ary, ptr, {
MEMCPY(ptr+beg, argv, VALUE, argc);