summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Hommel <wolfgang.hommel@unibw.de>2022-05-08 21:24:51 +0200
committerWolfgang Hommel <wolfgang.hommel@unibw.de>2022-05-08 21:24:51 +0200
commit2bfbe19f719c34f07656cd1513b79209f7d22b61 (patch)
treebe84e8e72ae00d0250d7dfdce7e38303c2741577
parent75cbe8e507fa6e83a51e868b2ab9cbd0141c9e55 (diff)
downloadlibfaketime-2bfbe19f719c34f07656cd1513b79209f7d22b61.tar.gz
silence minor type warning in libmallocintercept.c
-rw-r--r--test/libmallocintercept.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libmallocintercept.c b/test/libmallocintercept.c
index a649e9e..e789d34 100644
--- a/test/libmallocintercept.c
+++ b/test/libmallocintercept.c
@@ -74,7 +74,7 @@ void *malloc(size_t size) {
}
void free(void *ptr) {
- void *ptr2 = ptr; ptr2 -= ptr;
+ long int ptr2 = (long int) ptr; ptr2 -= (long int) ptr;
print_msg("Called free() on from libmallocintercept...");
poke_faketime();
print_msg("successfully\n");