diff options
Diffstat (limited to 'src/token.cc')
-rw-r--r-- | src/token.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/token.cc b/src/token.cc index 2ffc24cc..78c649a8 100644 --- a/src/token.cc +++ b/src/token.cc @@ -122,8 +122,9 @@ const char* GetTokenTypeName(TokenType token_type) { "Expected TokenType names list length to match number of TokenTypes."); int x = static_cast<int>(token_type); - if (x < WABT_ENUM_COUNT(TokenType)) + if (x < WABT_ENUM_COUNT(TokenType)) { return s_names[x]; + } return "Invalid"; } |