зеркало из https://github.com/github/ruby.git
* gc.c (ruby_xmalloc): use size_t for malloc argument instead of long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
45acd59d2d
Коммит
fd8734a64d
|
@ -1,3 +1,7 @@
|
|||
Mon Apr 21 08:54:30 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* gc.c (ruby_xmalloc): use size_t for malloc argument instead of long.
|
||||
|
||||
Sun Apr 20 21:00:21 2008 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* enumerator.c, include/ruby/ruby.h: Export rb_cEnumerator.
|
||||
|
|
2
gc.c
2
gc.c
|
@ -314,7 +314,7 @@ ruby_xmalloc(size_t size)
|
|||
void *
|
||||
ruby_xmalloc2(size_t n, size_t size)
|
||||
{
|
||||
long len = size * n;
|
||||
size_t len = size * n;
|
||||
if (n != 0 && size != len / n) {
|
||||
rb_raise(rb_eArgError, "malloc: possible integer overflow");
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#define RUBY_VERSION "1.9.0"
|
||||
#define RUBY_RELEASE_DATE "2008-04-20"
|
||||
#define RUBY_RELEASE_DATE "2008-04-21"
|
||||
#define RUBY_VERSION_CODE 190
|
||||
#define RUBY_RELEASE_CODE 20080420
|
||||
#define RUBY_RELEASE_CODE 20080421
|
||||
#define RUBY_PATCHLEVEL 0
|
||||
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
|
@ -9,7 +9,7 @@
|
|||
#define RUBY_VERSION_TEENY 0
|
||||
#define RUBY_RELEASE_YEAR 2008
|
||||
#define RUBY_RELEASE_MONTH 4
|
||||
#define RUBY_RELEASE_DAY 20
|
||||
#define RUBY_RELEASE_DAY 21
|
||||
|
||||
#ifdef RUBY_EXTERN
|
||||
RUBY_EXTERN const char ruby_version[];
|
||||
|
|
Загрузка…
Ссылка в новой задаче