ref: f23faf185f95e3d2858ab63f757bd62c1e0849b3
parent: 9fd36fb80508d28346e8767f86b1e6dc587993d5
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Mar 30 10:29:40 EDT 2022
tests/cc: Use a compatible pointer in 0117-pointerarith We can substract pointers of different type.
--- a/tests/cc/execute/0117-pointarith.c
+++ b/tests/cc/execute/0117-pointarith.c
@@ -3,5 +3,5 @@
{
int i, *p = &i;
- return p - (void*) 0 == 0;
+ return p - (int*) 0 == 0;
}