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

ruby-changes:26433

From: nobu <ko1@a...>
Date: Thu, 20 Dec 2012 10:53:06 +0900 (JST)
Subject: [ruby-changes:26433] nobu:r38484 (trunk): vm.c: fix format

nobu	2012-12-20 10:52:50 +0900 (Thu, 20 Dec 2012)

  New Revision: 38484

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

  Log:
    vm.c: fix format
    
    * vm.c (get_param): fix format specifier for size_t.

  Modified files:
    trunk/vm.c

Index: vm.c
===================================================================
--- vm.c	(revision 38483)
+++ vm.c	(revision 38484)
@@ -1641,7 +1641,7 @@ get_param(const char *name, size_t defau https://github.com/ruby/ruby/blob/trunk/vm.c#L1641
 	}
 	result = (size_t)(((val -1 + RUBY_VM_SIZE_ALIGN) / RUBY_VM_SIZE_ALIGN) * RUBY_VM_SIZE_ALIGN);
     }
-    if (0) fprintf(stderr, "%s: %d\n", name, result); /* debug print */
+    if (0) fprintf(stderr, "%s: %"PRIdSIZE"\n", name, result); /* debug print */
 
     return result;
 }

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

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