aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/anarres/cpp/Token.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/anarres/cpp/Token.java')
-rw-r--r--src/java/org/anarres/cpp/Token.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/anarres/cpp/Token.java b/src/java/org/anarres/cpp/Token.java
index bb56531..0dca7ff 100644
--- a/src/java/org/anarres/cpp/Token.java
+++ b/src/java/org/anarres/cpp/Token.java
@@ -54,7 +54,7 @@ public final class Token {
}
/* pp */ Token(int type) {
- this(type, texts[type]);
+ this(type, type < _TOKENS ? texts[type] : "TOK" + type);
}
/**