From a54832714d89dbd5f6a86d7d8abe270b59d364d8 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 10 Jan 2012 06:52:24 +0000 Subject: * 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 --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index bd1483a1de..6ce83469e6 100644 --- a/gc.c +++ b/gc.c @@ -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))) -- cgit v1.2.3