Skip to content

Commit f4be48b

Browse files
committed
[NFC] arithmetic on a pointer to void is a GNU extension [-Wpointer-arith]
1 parent ce587f0 commit f4be48b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/tools/swift-reflection-test/swift-reflection-test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ makeLocalSection(const void *Buffer,
310310
}
311311

312312
swift_reflection_section_t LS = {(void *)Buffer,
313-
(void *)(Buffer + Section.Size)};
313+
(void *)((uint8_t *)Buffer + Section.Size)};
314314
return LS;
315315
}
316316

0 commit comments

Comments
 (0)