aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 4423a2a..5920793 100644
--- a/parse.y
+++ b/parse.y
@@ -22,6 +22,7 @@
%{
#include <sys/types.h>
+#include <inttypes.h>
#include "queue.h"
#include <ctype.h>
@@ -106,7 +107,7 @@ string : string STRING {
numberstring : NUMBER {
char *s;
- if (asprintf(&s, "%lld", $1) == -1) {
+ if (asprintf(&s, "%" PRId64, $1) == -1) {
yyerror("string: asprintf");
YYERROR;
}