From: Marcus Rueckert Date: 2009-01-22T02:54:57+09:00 Subject: [ruby-core:21493] Re: 2 small warning fixes for 1.9.1 --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 2009-01-22 02:49:43 +0900, Marcus Rueckert wrote: > ruby-1.9.1-rc2_gc_64bit_warning.patch fixes > [[[ > gc.c: In function 'garbage_collect_with_gvl': > gc.c:596: warning: cast from pointer to integer of different size > ]]] new version of this patch with the obvious typo fixed darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --OgqxwSJOaUobr8KG Content-Type: text/x-patch; charset=us-ascii Content-Disposition: attachment; filename="ruby-1.9.1-rc2_gc_64bit_warning.patch" Index: gc.c =================================================================== --- gc.c.orig 2009-01-15 16:40:27.000000000 +0100 +++ gc.c 2009-01-21 17:33:41.109024824 +0100 @@ -593,7 +593,7 @@ garbage_collect_with_gvl(rb_objspace_t * } else { if (ruby_native_thread_p()) { - return (int)rb_thread_call_with_gvl(gc_with_gvl, (void *)objspace); + return rb_thread_call_with_gvl(gc_with_gvl, (void *)objspace) ? 1 : 0; } else { /* no ruby thread */ --OgqxwSJOaUobr8KG--