diff options
Diffstat (limited to 'src/parse/tokentree.cpp')
-rw-r--r-- | src/parse/tokentree.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parse/tokentree.cpp b/src/parse/tokentree.cpp index bb0ea9fc..2d807f7d 100644 --- a/src/parse/tokentree.cpp +++ b/src/parse/tokentree.cpp @@ -32,10 +32,10 @@ TokenTree TokenTree::clone() const case TOK_LIFETIME: os << "/*" << tt.m_hygiene << "*/"; break; - case TOK_INTERPOLATED_IDENT ... TOK_INTERPOLATED_ITEM: - os << "/*int*/"; - break; default: + if( TOK_INTERPOLATED_IDENT <= tt.m_tok.type() && tt.m_tok.type() <= TOK_INTERPOLATED_ITEM ) { + os << "/*int*/"; + } break; } return os << tt.m_tok.to_str(); |