Use c99 instead of ansi due to support int64 in template. Add __LEVEL built-in variab...
[tedtools.git] / tmpl_scan.l
index 81be52f..fdfec53 100644 (file)
@@ -1,4 +1,7 @@
 %{
+#include <stdlib.h>
+#include <limits.h>
+
 #include <tlog.h>
 #include <tmalloc.h>
 #include <template.h>
@@ -97,7 +100,7 @@ DIGIT                [0-9]
                                        }
 
 <xEXPR,xVAR>{DIGIT}+   {
-                                       yylval.intval = atoi(yytext);
+                                       yylval.intval = strtoll(yytext, NULL, 0);
                                                return INTEGER;
                                        }