diff options
author | John Hodge <tpg@mutabah.net> | 2017-08-31 17:35:29 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2017-08-31 17:35:29 +0800 |
commit | 43a9adaef989a8bed5f8fafeef78555df0bd8fb0 (patch) | |
tree | 6eedfe5af1e1a4a3fd0ae18cf6cb94713cfbb260 /src/parse | |
parent | bb4c5f2b93b4188f8cf574a782303bc05756b230 (diff) | |
download | mrust-43a9adaef989a8bed5f8fafeef78555df0bd8fb0.tar.gz |
Misc - Windows compile fixes
Diffstat (limited to 'src/parse')
-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(); |