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

ruby-changes:3358

From: ko1@a...
Date: 2 Jan 2008 15:29:15 +0900
Subject: [ruby-changes:3358] akr - Ruby:r14851 (trunk): use signed char explicitly for table in scan_digits.

akr	2008-01-02 15:29:08 +0900 (Wed, 02 Jan 2008)

  New Revision: 14851

  Modified files:
    trunk/util.c

  Log:
    use signed char explicitly for table in scan_digits.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/util.c?r1=14851&r2=14850&diff_format=u

Index: util.c
===================================================================
--- util.c	(revision 14850)
+++ util.c	(revision 14851)
@@ -66,7 +66,7 @@
 static unsigned long
 scan_digits(const char *str, int base, size_t *retlen, int *overflow)
 {
-    static char table[] = {
+    static signed char table[] = {
         /*     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f */
         /*0*/ -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
         /*1*/ -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,

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

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