From e37e1698633ca7418fe033eeadb377e18e10c554 Mon Sep 17 00:00:00 2001 From: Pavol Cizmarik Date: Wed, 9 Jan 2019 17:53:25 +0100 Subject: [PATCH] Fixed warnings about long int during compilation --- sjasm/reader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sjasm/reader.cpp b/sjasm/reader.cpp index 1d032b64..ed76c1b7 100644 --- a/sjasm/reader.cpp +++ b/sjasm/reader.cpp @@ -259,7 +259,7 @@ char* getinstr(char*& p) { int check8(aint val, bool error) { if ((val < -256 || val > 255) && error) { char buffer[32]; - sprintf(buffer, "Bytes lost (0x%X)", val); + sprintf(buffer, "Bytes lost (0x%lX)", val); Warning(buffer, 0, LASTPASS); return 0; } @@ -270,7 +270,7 @@ int check8(aint val, bool error) { int check8o(long val) { if (val < -128 || val > 127) { char buffer[32]; - sprintf(buffer,"Offset out of range (%+i)", val); + sprintf(buffer,"Offset out of range (%+li)", val); Error(buffer, 0, LASTPASS); return 0; } @@ -281,7 +281,7 @@ int check8o(long val) { int check16(aint val, bool error) { if ((val < -65536 || val > 65535) && error) { char buffer[32]; - sprintf(buffer, "Bytes lost (0x%X)", val); + sprintf(buffer, "Bytes lost (0x%lX)", val); Warning(buffer, 0, LASTPASS); return 0; } @@ -292,7 +292,7 @@ int check16(aint val, bool error) { int check24(aint val, bool error) { if ((val < -16777216 || val > 16777215) && error) { char buffer[32]; - sprintf(buffer, "Bytes lost (0x%X)", val); + sprintf(buffer, "Bytes lost (0x%lX)", val); Warning(buffer, 0, LASTPASS); return 0; }