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

ruby-changes:21061

From: naruse <ko1@a...>
Date: Mon, 29 Aug 2011 12:54:46 +0900 (JST)
Subject: [ruby-changes:21061] naruse:r33110 (trunk): Use PRIdSIZE.

naruse	2011-08-29 12:54:35 +0900 (Mon, 29 Aug 2011)

  New Revision: 33110

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

  Log:
    Use PRIdSIZE.

  Modified files:
    trunk/iseq.c

Index: iseq.c
===================================================================
--- iseq.c	(revision 33109)
+++ iseq.c	(revision 33110)
@@ -688,8 +688,8 @@
     const int debug = 0;
 
     if (debug) {
-	printf("size: %d\n", size);
-	printf("table[%d]: position: %d, line: %d, pos: %d\n",
+	printf("size: %"PRIdSIZE"\n", size);
+	printf("table[%"PRIdSIZE"]: position: %d, line: %d, pos: %"PRIdSIZE"\n",
 	       i, table[i].position, table[i].line_no, pos);
     }
 
@@ -701,7 +701,7 @@
     }
     else {
 	for (i=1; i<size; i++) {
-	    if (debug) printf("table[%d]: position: %d, line: %d, pos: %d\n",
+	    if (debug) printf("table[%"PRIdSIZE"]: position: %d, line: %d, pos: %"PRIdSIZE"\n",
 			      i, table[i].position, table[i].line_no, pos);
 
 	if (table[i].position == pos) {

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

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