* internal.h (ruby_sized_xrealloc2): fix typo introduced in r44117, which cause compile error on Solaris.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ngoto 2013-12-13 15:44:13 +00:00
Родитель 26d147c733
Коммит 42ae24a6e8
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Sat Dec 14 00:34:31 2013 Naohisa Goto <ngotogenome@gmail.com>
* internal.h (ruby_sized_xrealloc2): fix typo introduced in r44117,
which cause compile error on Solaris.
Sat Dec 14 00:22:16 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread.c: (exec_recursive): use rb_catch_protect() instead of

Просмотреть файл

@ -466,7 +466,7 @@ void ruby_gc_set_params(int safe_level);
#define SIZED_REALLOC_N(var,type,n,old_n) REALLOC_N(var, type, n)
#else
void *ruby_sized_xrealloc(void *ptr, size_t new_size, size_t old_size) RUBY_ATTR_ALLOC_SIZE((2));
void *ruby_sized_xrealloc(void *ptr, size_t new_count, size_t element_size, size_t old_count) RUBY_ATTR_ALLOC_SIZE((2, 3));
void *ruby_sized_xrealloc2(void *ptr, size_t new_count, size_t element_size, size_t old_count) RUBY_ATTR_ALLOC_SIZE((2, 3));
void ruby_sized_xfree(void *x, size_t size);
#define SIZED_REALLOC_N(var,type,n,old_n) ((var)=(type*)ruby_sized_xrealloc((char*)(var), (n) * sizeof(type), (old_n) * sizeof(type)))
#endif