From c144f061451e5d12d6583202e73f5063233ed7a5 Mon Sep 17 00:00:00 2001 From: mio Date: Sat, 1 Oct 2022 00:13:59 +0200 Subject: [PATCH] Format code --- tests/unit/test_ctl.c | 2 +- tests/unit/test_mem.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_ctl.c b/tests/unit/test_ctl.c index 5eef28d0..6277da67 100644 --- a/tests/unit/test_ctl.c +++ b/tests/unit/test_ctl.c @@ -254,7 +254,7 @@ static void test_uc_hook_cached_uaf(void) // Apple Silicon does not allow RWX pages. void *callback = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); - TEST_CHECK(callback != (void*)-1); + TEST_CHECK(callback != (void *)-1); #else void *callback = VirtualAlloc(NULL, 4096, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE); diff --git a/tests/unit/test_mem.c b/tests/unit/test_mem.c index 8910fdcf..997330c4 100644 --- a/tests/unit/test_mem.c +++ b/tests/unit/test_mem.c @@ -185,7 +185,7 @@ static void test_map_big_memory(void) OK(uc_open(UC_ARCH_X86, UC_MODE_64, &uc)); #if defined(_WIN32) || defined(__WIN32__) || defined(__WINDOWS__) - uint64_t requested_size = 0xfffffffffffff000; // assume 4K page size + uint64_t requested_size = 0xfffffffffffff000; // assume 4K page size #else long ps = sysconf(_SC_PAGESIZE); uint64_t requested_size = (uint64_t)(-ps);