aboutsummaryrefslogtreecommitdiff
path: root/src/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser.y b/src/parser.y
index e424068..07afbe7 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -1,6 +1,7 @@
%{
#include <ctype.h>
#include <err.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@@ -80,7 +81,7 @@ expr:
$$.eqn = xmalloc(sizeof(eqn_t));
$$.eqn->type = IDENT;
$$.eqn->ch = $1;
- $$.vars = 1 << (islower($1) ? $1-'a'+26 : $1-'A');
+ $$.vars = UINT64_C(1) << (islower($1) ? $1-'a'+26 : $1-'A');
}
| NOT expr { $$ = mkunop(NOT, $2); }
| OPAR expr CPAR { $$ = mkunop(OPAR, $2); }