diff options
author | H. Peter Anvin <hpa@zytor.com> | 2017-02-23 18:18:12 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2017-02-23 18:18:12 -0800 |
commit | 11f18ec05b99c586ef9312061a06afa38836b9f5 (patch) | |
tree | 85b39bb6d65932fb7af2859339977ead01e921db /asm/exprlib.c | |
parent | be01d496d4068507425a0f1999e387bb77a562f4 (diff) | |
download | nasm-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.c | 2 |
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"); } |