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

ruby-changes:5158

From: akr <ko1@a...>
Date: Wed, 28 May 2008 08:44:00 +0900 (JST)
Subject: [ruby-changes:5158] Ruby:r16653 (trunk): * numeric.c: "%" is required before PRI?VALUE.

akr	2008-05-28 08:43:46 +0900 (Wed, 28 May 2008)

  New Revision: 16653

  Modified files:
    trunk/ChangeLog
    trunk/numeric.c

  Log:
    * numeric.c: "%" is required before PRI?VALUE.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/numeric.c?r1=16653&r2=16652&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16653&r2=16652&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 16652)
+++ ChangeLog	(revision 16653)
@@ -1,3 +1,7 @@
+Wed May 28 08:42:51 2008  Tanaka Akira  <akr@f...>
+
+	* numeric.c: "%" is required before PRI?VALUE.
+
 Tue May 27 22:10:44 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* eval_error.c (error_handle): SystemExit and SignalException throws
Index: numeric.c
===================================================================
--- numeric.c	(revision 16652)
+++ numeric.c	(revision 16653)
@@ -1574,14 +1574,14 @@
     else {
 	return;
     }
-    rb_raise(rb_eRangeError, "integer " PRIdVALUE " too %s to convert to `int'", num, s);
+    rb_raise(rb_eRangeError, "integer %"PRIdVALUE " too %s to convert to `int'", num, s);
 }
 
 static void
 check_uint(VALUE num)
 {
     if (num > UINT_MAX) {
-	rb_raise(rb_eRangeError, "integer " PRIuVALUE " too big to convert to `unsigned int'", num);
+	rb_raise(rb_eRangeError, "integer %"PRIuVALUE " too big to convert to `unsigned int'", num);
     }
 }
 
@@ -1651,7 +1651,7 @@
 
     v = rb_num2long(val);
     if (!FIXABLE(v))
-	rb_raise(rb_eRangeError, "integer " PRIdVALUE " out of range of fixnum", v);
+	rb_raise(rb_eRangeError, "integer %"PRIdVALUE " out of range of fixnum", v);
     return LONG2FIX(v);
 }
 
@@ -1879,7 +1879,7 @@
       case 0:
 	if (i < 0 || 0xff < i) {
 	  out_of_range:
-	    rb_raise(rb_eRangeError, PRIdVALUE " out of char range", i);
+	    rb_raise(rb_eRangeError, "%"PRIdVALUE " out of char range", i);
 	}
 	c = i;
 	if (i < 0x80) {

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

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