From 7880f4f0636cd79fa3dbab04bb862d48cf93a68e Mon Sep 17 00:00:00 2001 From: fusion32 Date: Wed, 10 Sep 2025 18:27:20 -0300 Subject: fix problem when compiling in 32-bit + add license --- ipchanger.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ipchanger.cc') diff --git a/ipchanger.cc b/ipchanger.cc index db1d546..63f8028 100644 --- a/ipchanger.cc +++ b/ipchanger.cc @@ -2,6 +2,7 @@ #include #include #include +#include #define WIN32_LEAN_AND_MEAN 1 #include @@ -92,7 +93,7 @@ void DebugPrintBuf(uintptr Address, const uint8 *Buffer, int Count){ int Remainder = Count % BytesPerLine; for(int i = 0; i < FullLines; i += 1){ - printf("%16llX | ", (Address + i * BytesPerLine)); + printf("%16" PRIXPTR " | ", (Address + i * BytesPerLine)); for(int j = 0; j < BytesPerLine; j += 1){ if(j > 0) putchar(' '); @@ -110,7 +111,7 @@ void DebugPrintBuf(uintptr Address, const uint8 *Buffer, int Count){ } if(Remainder > 0){ - printf("%16llX | ", (Address + FullLines * BytesPerLine)); + printf("%16" PRIXPTR " | ", (Address + FullLines * BytesPerLine)); for(int j = 0; j < BytesPerLine; j += 1){ if(j > 0) putchar(' '); -- cgit v1.2.3