Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5e65b67

Browse files
authoredFeb 5, 2024
fix: error: 'SIZE_MAX' was not declared in this scope (#73)
* fix: error: 'SIZE_MAX' was not declared in this scope * fix: warning: format '%zu' expects argument of type 'size_t', but argument 5 has type 'int'
1 parent 8d5e2e9 commit 5e65b67

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎src/e9tool/e9cfg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ void dumpInfo(const std::string basename, const Instr *Is, size_t size,
643643
filename.c_str(), strerror(errno));
644644
fputs("address,offset,size\n", stream);
645645
for (size_t i = 0; i < size; i++)
646-
fprintf(stream, "%p,%+zd,%zu\n", (void *)(uintptr_t)Is[i].address,
646+
fprintf(stream, "%p,%+zd,%u\n", (void *)(uintptr_t)Is[i].address,
647647
Is[i].offset, Is[i].size);
648648
fclose(stream);
649649
}

‎src/e9tool/e9misc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#include <cstring>
1919
#include <cstdlib>
20+
#include <cstdint>
2021

2122
#include <dlfcn.h>
2223
#include <libgen.h>

0 commit comments

Comments
 (0)
Please sign in to comment.