Index: src/globals.h |
diff --git a/src/globals.h b/src/globals.h |
index 7da95bc1542885717669d684e0deab531b080978..ea0aac998f89aa304b13990ca22a05f5e36d8a5f 100644 |
--- a/src/globals.h |
+++ b/src/globals.h |
@@ -912,7 +912,8 @@ inline bool IsDynamicVariableMode(VariableMode mode) { |
inline bool IsDeclaredVariableMode(VariableMode mode) { |
- return mode >= VAR && mode <= CONST; |
+ STATIC_ASSERT(VAR == 0); // Implies that mode >= VAR. |
Jakob Kummerow
2016/08/25 11:35:11
../../src/globals.h:915:15: warning: comparison is
|
+ return mode <= CONST; |
} |