diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-09-10 18:27:20 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-09-10 18:27:20 -0300 |
| commit | 7880f4f0636cd79fa3dbab04bb862d48cf93a68e (patch) | |
| tree | ec70c60f28aea21d57aacdb76bc491448bf0398a /ipchanger.cc | |
| parent | 2bf0920cc573d7067e2f5dad4b108d24f5a886f9 (diff) | |
| download | ipchanger-7880f4f0636cd79fa3dbab04bb862d48cf93a68e.tar.gz ipchanger-7880f4f0636cd79fa3dbab04bb862d48cf93a68e.zip | |
fix problem when compiling in 32-bit + add license
Diffstat (limited to 'ipchanger.cc')
| -rw-r--r-- | ipchanger.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ipchanger.cc b/ipchanger.cc index db1d546..63f8028 100644 --- a/ipchanger.cc +++ b/ipchanger.cc @@ -2,6 +2,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <inttypes.h> #define WIN32_LEAN_AND_MEAN 1 #include <windows.h> @@ -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(' '); |
