aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--parse.y2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 85a2546469..382df67634 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Jul 4 18:42:04 2014 Koichi Sasada <ko1@atdot.net>
+
+ * parse.y (must_be_dynamic_symbol): fix missed-condition.
+
Fri Jul 4 18:38:11 2014 Koichi Sasada <ko1@atdot.net>
* parse.y (rb_pin_dynamic_symbol): should be `static' function.
diff --git a/parse.y b/parse.y
index b336f1e000..d8662df76b 100644
--- a/parse.y
+++ b/parse.y
@@ -10417,7 +10417,7 @@ static ID intern_str(VALUE str);
static inline void
must_be_dynamic_symbol(VALUE x)
{
- if (UNLIKELY(DYNAMIC_SYM_P(x))) {
+ if (UNLIKELY(!DYNAMIC_SYM_P(x))) {
if (STATIC_SYM_P(x)) {
VALUE str;