aboutsummaryrefslogtreecommitdiff
path: root/tccasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccasm.c')
-rw-r--r--tccasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tccasm.c b/tccasm.c
index b833408..5356b62 100644
--- a/tccasm.c
+++ b/tccasm.c
@@ -87,13 +87,13 @@ static void asm_expr_unary(TCCState *s1, ExprValue *pe)
{
Sym *sym;
int op, label;
- unsigned long n;
+ uint64_t n;
const char *p;
switch(tok) {
case TOK_PPNUM:
p = tokc.str.data;
- n = strtoul(p, (char **)&p, 0);
+ n = strtoull(p, (char **)&p, 0);
if (*p == 'b' || *p == 'f') {
/* backward or forward label */
label = asm_get_local_label_name(s1, n);