diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-20 23:55:09 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-20 23:55:09 +0000 |
commit | fd8734a64d3de5a6d94061633ed719f068c1e723 (patch) | |
tree | 91c586bd5b09e2e4e237f8d9ab4941713cee3d40 /gc.c | |
parent | 45acd59d2db8ec12a0a048b1c79ebb8acf68b995 (diff) | |
download | ruby-fd8734a64d3de5a6d94061633ed719f068c1e723.tar.gz |
* 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
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |