summaryrefslogtreecommitdiff
path: root/asm/exprlib.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2017-02-23 18:18:12 -0800
committerH. Peter Anvin <hpa@zytor.com>2017-02-23 18:18:12 -0800
commit11f18ec05b99c586ef9312061a06afa38836b9f5 (patch)
tree85b39bb6d65932fb7af2859339977ead01e921db /asm/exprlib.c
parentbe01d496d4068507425a0f1999e387bb77a562f4 (diff)
downloadnasm-11f18ec05b99c586ef9312061a06afa38836b9f5.tar.gz
asm/exprlib.c: use PRId64 to print a 64-bit number
Use PRId64 instead of %ld to print a 64-bit number. This is debugging code, but as it is frequently useful I included it in mainline code and, well, then it has to compile everywhere... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'asm/exprlib.c')
-rw-r--r--asm/exprlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm/exprlib.c b/asm/exprlib.c
index 6315ff19..a0a666ce 100644
--- a/asm/exprlib.c
+++ b/asm/exprlib.c
@@ -237,6 +237,6 @@ void dump_expr(const expr *e)
{
printf("[");
for (; e->type; e++)
- printf("<%s(%d),%ld>", expr_type(e->type), e->type, e->value);
+ printf("<%s(%d),%"PRId64">", expr_type(e->type), e->type, e->value);
printf("]\n");
}