Closed io7m closed 7 years ago
Hello! The following file yields a ClassCastException:
ClassCastException
#define EXAMPLE_X 'a' #if EXAMPLE == EXAMPLE_X #endif
I have a small repro case here:
https://github.com/io7m/jcpp-bug-20170423
The bug appears to be at:
https://github.com/shevek/jcpp/blob/master/src/main/java/org/anarres/cpp/Preprocessor.java#L1598
The value held by the token isn't a Character but a String.
Character
String
Nice work. Thanks!
Hello! The following file yields a
ClassCastException
:I have a small repro case here:
https://github.com/io7m/jcpp-bug-20170423
The bug appears to be at:
https://github.com/shevek/jcpp/blob/master/src/main/java/org/anarres/cpp/Preprocessor.java#L1598
The value held by the token isn't a
Character
but aString
.