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

ruby-changes:15738

From: nobu <ko1@a...>
Date: Sat, 8 May 2010 12:11:36 +0900 (JST)
Subject: [ruby-changes:15738] Ruby:r27666 (ruby_1_9_2, trunk): * ext/etc/etc.c: suppressed warnings.

nobu	2010-05-08 12:08:53 +0900 (Sat, 08 May 2010)

  New Revision: 27666

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

  Log:
    * ext/etc/etc.c: suppressed warnings.

  Modified files:
    branches/ruby_1_9_2/ext/etc/etc.c
    trunk/ext/etc/etc.c

Index: ext/etc/etc.c
===================================================================
--- ext/etc/etc.c	(revision 27665)
+++ ext/etc/etc.c	(revision 27666)
@@ -166,7 +166,7 @@
 static VALUE
 passwd_ensure(void)
 {
-    passwd_blocking = Qfalse;
+    passwd_blocking = (int)Qfalse;
     return Qnil;
 }
 
@@ -189,7 +189,7 @@
     if (passwd_blocking) {
 	rb_raise(rb_eRuntimeError, "parallel passwd iteration");
     }
-    passwd_blocking = Qtrue;
+    passwd_blocking = (int)Qtrue;
     rb_ensure(passwd_iterate, 0, passwd_ensure, 0);
 }
 #endif
@@ -404,7 +404,7 @@
 static VALUE
 group_ensure(void)
 {
-    group_blocking = Qfalse;
+    group_blocking = (int)Qfalse;
     return Qnil;
 }
 
@@ -427,7 +427,7 @@
     if (group_blocking) {
 	rb_raise(rb_eRuntimeError, "parallel group iteration");
     }
-    group_blocking = Qtrue;
+    group_blocking = (int)Qtrue;
     rb_ensure(group_iterate, 0, group_ensure, 0);
 }
 #endif
Index: ruby_1_9_2/ext/etc/etc.c
===================================================================
--- ruby_1_9_2/ext/etc/etc.c	(revision 27665)
+++ ruby_1_9_2/ext/etc/etc.c	(revision 27666)
@@ -166,7 +166,7 @@
 static VALUE
 passwd_ensure(void)
 {
-    passwd_blocking = Qfalse;
+    passwd_blocking = (int)Qfalse;
     return Qnil;
 }
 
@@ -189,7 +189,7 @@
     if (passwd_blocking) {
 	rb_raise(rb_eRuntimeError, "parallel passwd iteration");
     }
-    passwd_blocking = Qtrue;
+    passwd_blocking = (int)Qtrue;
     rb_ensure(passwd_iterate, 0, passwd_ensure, 0);
 }
 #endif
@@ -404,7 +404,7 @@
 static VALUE
 group_ensure(void)
 {
-    group_blocking = Qfalse;
+    group_blocking = (int)Qfalse;
     return Qnil;
 }
 
@@ -427,7 +427,7 @@
     if (group_blocking) {
 	rb_raise(rb_eRuntimeError, "parallel group iteration");
     }
-    group_blocking = Qtrue;
+    group_blocking = (int)Qtrue;
     rb_ensure(group_iterate, 0, group_ensure, 0);
 }
 #endif

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

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