[前][次][番号順一覧][スレッド一覧]

ruby-changes:12310

From: wyhaines <ko1@a...>
Date: Fri, 10 Jul 2009 03:06:02 +0900 (JST)
Subject: [ruby-changes:12310] Ruby:r24005 (ruby_1_8_6): Fixed warning: passing argument 1 of 'add_freelist' makes pointer from integer without a cast

wyhaines	2009-07-10 03:05:20 +0900 (Fri, 10 Jul 2009)

  New Revision: 24005

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24005

  Log:
    Fixed warning: passing argument 1 of 'add_freelist' makes pointer from integer without a cast

  Modified files:
    branches/ruby_1_8_6/ChangeLog
    branches/ruby_1_8_6/gc.c
    branches/ruby_1_8_6/version.h

Index: ruby_1_8_6/ChangeLog
===================================================================
--- ruby_1_8_6/ChangeLog	(revision 24004)
+++ ruby_1_8_6/ChangeLog	(revision 24005)
@@ -2,6 +2,8 @@
 
 	* 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 <khaines@r...>
 
 	* lib/soap/mimemessage.rb: Fixed a typo -- conent -> content
Index: ruby_1_8_6/version.h
===================================================================
--- ruby_1_8_6/version.h	(revision 24004)
+++ ruby_1_8_6/version.h	(revision 24005)
@@ -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
Index: ruby_1_8_6/gc.c
===================================================================
--- ruby_1_8_6/gc.c	(revision 24004)
+++ ruby_1_8_6/gc.c	(revision 24005)
@@ -1193,7 +1193,7 @@
 rb_gc_force_recycle(p)
     VALUE p;
 {
-    add_freelist(p);
+    add_freelist((RVALUE*)p);
 }
 
 static inline void

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]