aboutsummaryrefslogtreecommitdiffstats
path: root/com32/samples/hello.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/samples/hello.c')
-rw-r--r--com32/samples/hello.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/samples/hello.c b/com32/samples/hello.c
index d3d4d299..8ab00984 100644
--- a/com32/samples/hello.c
+++ b/com32/samples/hello.c
@@ -18,7 +18,8 @@ int main(int argc __unused, char **argv __unused)
int *nums = NULL;
nums = malloc(NUM_COUNT * sizeof(int));
- printf("Hello, world, from 0x%08X! malloc return %p\n", (unsigned int)&main, nums);
+ printf("Hello, world, from %p! malloc return %p\n",
+ (const void *)&main, nums);
free(nums);