fix typo
* error.c (rb_builtin_type_name): fix typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6e018e3f49
commit
0ff0133984
4
error.c
4
error.c
@ -416,7 +416,7 @@ static const char builtin_types[][10] = {
|
|||||||
"", /* 0x17 */
|
"", /* 0x17 */
|
||||||
"", /* 0x18 */
|
"", /* 0x18 */
|
||||||
"", /* 0x19 */
|
"", /* 0x19 */
|
||||||
{}, /* 0x1a */
|
"", /* 0x1a */
|
||||||
"undef", /* internal use: #undef; should not happen */
|
"undef", /* internal use: #undef; should not happen */
|
||||||
"Node", /* internal use: syntax tree node */
|
"Node", /* internal use: syntax tree node */
|
||||||
"iClass", /* internal use: mixed-in module holder */
|
"iClass", /* internal use: mixed-in module holder */
|
||||||
@ -426,7 +426,7 @@ const char *
|
|||||||
rb_builtin_type_name(int t)
|
rb_builtin_type_name(int t)
|
||||||
{
|
{
|
||||||
const char *name;
|
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];
|
name = builtin_types[t];
|
||||||
if (*name) return name;
|
if (*name) return name;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user