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

ruby-changes:24391

From: nobu <ko1@a...>
Date: Wed, 18 Jul 2012 18:26:41 +0900 (JST)
Subject: [ruby-changes:24391] nobu:r36442 (trunk): fix typo

nobu	2012-07-18 18:25:18 +0900 (Wed, 18 Jul 2012)

  New Revision: 36442

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

  Log:
    fix typo
    
    * error.c (rb_builtin_type_name): fix typo.

  Modified files:
    trunk/error.c

Index: error.c
===================================================================
--- error.c	(revision 36441)
+++ error.c	(revision 36442)
@@ -416,7 +416,7 @@
     "",				/* 0x17 */
     "",				/* 0x18 */
     "",				/* 0x19 */
-    {},				/* 0x1a */
+    "",				/* 0x1a */
     "undef",			/* internal use: #undef; should not happen */
     "Node",			/* internal use: syntax tree node */
     "iClass",			/* internal use: mixed-in module holder */
@@ -426,7 +426,7 @@
 rb_builtin_type_name(int t)
 {
     const char *name;
-    if ((unsigned int)t > numberof(builtin_types)) return 0;
+    if ((unsigned int)t >= numberof(builtin_types)) return 0;
     name = builtin_types[t];
     if (*name) return name;
     return 0;

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

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