diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-10 06:52:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-10 06:52:24 +0000 |
commit | a54832714d89dbd5f6a86d7d8abe270b59d364d8 (patch) | |
tree | 494428c11fe49d4e93962a8f7af0cb0e1dfd6b03 /gc.c | |
parent | 37b8092c3bec8ba2be7ebab82ca9099b5bcb23f2 (diff) | |
download | ruby-a54832714d89dbd5f6a86d7d8abe270b59d364d8.tar.gz |
* gc.c (HEAP_OBJ_LIMIT): suppress narrowing down warning from gcc 4.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -543,7 +543,7 @@ rb_objspace_free(rb_objspace_t *objspace) #define REQUIRED_SIZE_BY_MALLOC (sizeof(size_t) * 5) #define HEAP_SIZE (HEAP_ALIGN - REQUIRED_SIZE_BY_MALLOC) -#define HEAP_OBJ_LIMIT (HEAP_SIZE/(unsigned int)sizeof(struct RVALUE) - (unsigned int)(sizeof(struct heaps_slot)/sizeof(struct RVALUE)+1)) +#define HEAP_OBJ_LIMIT (unsigned int)(HEAP_SIZE/sizeof(struct RVALUE) - (sizeof(struct heaps_slot)/sizeof(struct RVALUE)+1)) #define HEAP_BITMAP_LIMIT (HEAP_OBJ_LIMIT/sizeof(uintptr_t)+1) #define GET_HEAP_HEADER(x) (HEAP_HEADER(((uintptr_t)x) & ~(HEAP_ALIGN_MASK))) |