aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-02-18 16:18:35 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-02-20 11:29:24 +0100
commitee4d4dba3e0cd71d9c34ae6215b86bdb8b0dd415 (patch)
tree3614aac81473919ae6a7a6cad58a3807a82750d4
parent711fb682c570ec84943530e6e5578ae0e409f695 (diff)
downloadsparse-dev-ee4d4dba3e0cd71d9c34ae6215b86bdb8b0dd415.tar.gz
use '%lld' for printing long longs
The used '%Ld' is a non-portable GNU extension (whcih I suppose predate the standization of '%lld'). Use the standard '%lld' instead. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--compile-i386.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compile-i386.c b/compile-i386.c
index 44ef7bba..9c6c1860 100644
--- a/compile-i386.c
+++ b/compile-i386.c
@@ -451,7 +451,7 @@ static const char *stor_op_name(struct storage *s)
strcpy(name, s->reg->name);
break;
case STOR_VALUE:
- sprintf(name, "$%Ld", s->value);
+ sprintf(name, "$%lld", s->value);
break;
case STOR_LABEL:
sprintf(name, "%s.L%d", s->flags & STOR_LABEL_VAL ? "$" : "",
@@ -936,7 +936,7 @@ static void emit_scalar(struct expression *expr, unsigned int bit_size)
assert(type != NULL);
- printf("\t.%s\t%Ld\n", type, ll);
+ printf("\t.%s\t%lld\n", type, ll);
}
static void emit_global_noinit(const char *name, unsigned long modifiers,