diff options
Diffstat (limited to 'src/token.h')
-rw-r--r-- | src/token.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/token.h b/src/token.h index aae73837..28e29752 100644 --- a/src/token.h +++ b/src/token.h @@ -94,7 +94,7 @@ struct expr_t::token_t : public noncopyable } kind; - char symbol[3]; + char symbol[6]; value_t value; std::size_t length; @@ -113,13 +113,10 @@ struct expr_t::token_t : public noncopyable } void clear() { - kind = UNKNOWN; - length = 0; - value = NULL_VALUE; - + kind = UNKNOWN; + length = 0; + value = NULL_VALUE; symbol[0] = '\0'; - symbol[1] = '\0'; - symbol[2] = '\0'; } int parse_reserved_word(std::istream& in); |