summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-30 07:39:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-30 07:39:10 +0000
commit6a0c01e5d80f04dcb8640e220f483db25fd2121e (patch)
treee8cd079b751d5c20e28502a0f96a01637e048334 /parse.y
parent9fe07c588f6a717199e1fbf62113dd2d30e44a41 (diff)
downloadruby-6a0c01e5d80f04dcb8640e220f483db25fd2121e.tar.gz
ruby-6a0c01e5d80f04dcb8640e220f483db25fd2121e.tar.xz
ruby-6a0c01e5d80f04dcb8640e220f483db25fd2121e.zip
* parse.y (rb_enc_symname2_p): not depend on nul terminator.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 9ebdaeb4b..0906919b9 100644
--- a/parse.y
+++ b/parse.y
@@ -9351,7 +9351,7 @@ rb_enc_symname2_p(const char *name, int len, rb_encoding *enc)
}
break;
}
- return *m ? Qfalse : Qtrue;
+ return m == e;
}
static ID