summaryrefslogtreecommitdiff
path: root/src/parse
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-08-31 17:35:29 +0800
committerJohn Hodge <tpg@mutabah.net>2017-08-31 17:35:29 +0800
commit43a9adaef989a8bed5f8fafeef78555df0bd8fb0 (patch)
tree6eedfe5af1e1a4a3fd0ae18cf6cb94713cfbb260 /src/parse
parentbb4c5f2b93b4188f8cf574a782303bc05756b230 (diff)
downloadmrust-43a9adaef989a8bed5f8fafeef78555df0bd8fb0.tar.gz
Misc - Windows compile fixes
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/tokentree.cpp6
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();