diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-18 09:25:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-18 09:25:18 +0000 |
commit | 0ff013398483fbb9507a661d02b9c5b64d9ed73c (patch) | |
tree | 4ea48c95d80323fdce013bb01d98c910ffc2e29a /error.c | |
parent | 6e018e3f492c791b725c9ee9d0b5fc023c88cd52 (diff) |
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
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -416,7 +416,7 @@ static const char builtin_types[][10] = { "", /* 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 @@ const char * 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; |