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

ruby-changes:44250

From: nobu <ko1@a...>
Date: Sun, 2 Oct 2016 12:32:11 +0900 (JST)
Subject: [ruby-changes:44250] nobu:r56323 (trunk): numeric.c: adjust type

nobu	2016-10-02 12:32:07 +0900 (Sun, 02 Oct 2016)

  New Revision: 56323

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56323

  Log:
    numeric.c: adjust type
    
    * numeric.c (rb_fix2str): cast to a pointer to adjust argument
      type for the format.

  Modified files:
    trunk/numeric.c
Index: numeric.c
===================================================================
--- numeric.c	(revision 56322)
+++ numeric.c	(revision 56323)
@@ -3271,7 +3271,7 @@ rb_fix2str(VALUE x, int base) https://github.com/ruby/ruby/blob/trunk/numeric.c#L3271
 # if SIZEOF_VOIDP == SIZEOF_LONG_LONG
     if ((val >= 0 && (x & 0xFFFFFFFF00000000ull)) ||
 	(val < 0 && (x & 0xFFFFFFFF00000000ull) != 0xFFFFFFFF00000000ull)) {
-	rb_bug("Unnormalized Fixnum value %p", x);
+	rb_bug("Unnormalized Fixnum value %p", (void *)x);
     }
 # elif
     /* should do something like above code, but currently ruby does not know */

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

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