From ba1ebe744b626eb2edcecf5072b228c239c8efdd Mon Sep 17 00:00:00 2001 From: wyhaines Date: Thu, 9 Jul 2009 18:05:20 +0000 Subject: Fixed warning: passing argument 1 of 'add_freelist' makes pointer from integer without a cast git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@24005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 2 ++ gc.c | 2 +- version.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 590d92192..3c87f6a3d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ Thu Jul 9 11:22:00 2009 Kirk Haines * gc.c: Add a check for DATA_PTR(obj) to run_final as a stopgap fix for debilitating segfaults. + * gc.c: Fixes warning: passing argument 1 of 'add_freelist' makes pointer from integer without a cast + Mon Jun 8 12:46:00 2009 Kirk Haines * lib/soap/mimemessage.rb: Fixed a typo -- conent -> content diff --git a/gc.c b/gc.c index 1ed3a38ff..9ea6f302c 100644 --- a/gc.c +++ b/gc.c @@ -1193,7 +1193,7 @@ void rb_gc_force_recycle(p) VALUE p; { - add_freelist(p); + add_freelist((RVALUE*)p); } static inline void diff --git a/version.h b/version.h index 39d28ce68..7dd3da354 100644 --- a/version.h +++ b/version.h @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2009-06-08" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20090608 -#define RUBY_PATCHLEVEL 370 +#define RUBY_PATCHLEVEL 371 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 -- cgit