]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ftepp.c
Flatten more external functions
[xonotic/gmqcc.git] / ftepp.c
diff --git a/ftepp.c b/ftepp.c
index a1b5f07e9a446321966707dde62f08b068b9efa4..7337ba3571efec36117426617adadc856757991f 100644 (file)
--- a/ftepp.c
+++ b/ftepp.c
@@ -422,7 +422,7 @@ static bool ftepp_define_body(ftepp_t *ftepp, ppmacro *macro)
                         return false;
                     }
 
-                    index = atoi(ftepp_tokval(ftepp));
+                    index = (int)strtol(ftepp_tokval(ftepp), NULL, 10);
 
                     if (ftepp_next(ftepp) != ']') {
                         ftepp_error(ftepp, "expected `]` in __VA_ARGS__ subscript");