mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
d320b2d9e9
commit
d462261395
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Jul 26 18:30:14 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* array.c (ary_memcpy): cast to int to suppress a warning.
|
||||
|
||||
Fri Jul 26 18:21:58 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* array.c (ary_memcpy): try to enable optimization.
|
||||
|
|
2
array.c
2
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue