summaryrefslogtreecommitdiff
path: root/src/parser/antlr_input.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/antlr_input.h')
-rw-r--r--src/parser/antlr_input.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parser/antlr_input.h b/src/parser/antlr_input.h
index a39defd14..bdf5fe59e 100644
--- a/src/parser/antlr_input.h
+++ b/src/parser/antlr_input.h
@@ -171,7 +171,7 @@ public:
static unsigned tokenToUnsigned( pANTLR3_COMMON_TOKEN token );
/** Retrieve an Integer from the text of a token */
- static Integer tokenToInteger( pANTLR3_COMMON_TOKEN token );
+ static Rational tokenToInteger( pANTLR3_COMMON_TOKEN token );
/** Retrieve a Rational from the text of a token */
static Rational tokenToRational(pANTLR3_COMMON_TOKEN token);
@@ -263,8 +263,8 @@ inline unsigned AntlrInput::tokenToUnsigned(pANTLR3_COMMON_TOKEN token) {
return result;
}
-inline Integer AntlrInput::tokenToInteger(pANTLR3_COMMON_TOKEN token) {
- return Integer( tokenText(token) );
+inline Rational AntlrInput::tokenToInteger(pANTLR3_COMMON_TOKEN token) {
+ return Rational( tokenText(token) );
}
inline Rational AntlrInput::tokenToRational(pANTLR3_COMMON_TOKEN token) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback