authorgravatar for bratishkaerik@getgoogleoff.meEric Joldasov <bratishkaerik@getgoogleoff.me> 2022-10-10 08:54:57+06:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-10-10 02:31:09-04:00
log02fff6fd0172502545389dcf335b173b4f951dda
treed38bb97abc4c6923ff011c3058f45da4b5549549
parent7f508480f49b78817bf67579a8810d4499cbbc13

Fix building with Clang 16

Related: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240

1 files changed, 2 insertions(+), 2 deletions(-)

src/stage1/parse_f128.c+2-2
...@@ -983,14 +983,14 @@ static int isspace(int c)...@@ -983,14 +983,14 @@ static int isspace(int c)
983 return c == ' ' || (unsigned)c-'\t' < 5;983 return c == ' ' || (unsigned)c-'\t' < 5;
984}984}
985985
986static inline float128_t makeInf128() {986static inline float128_t makeInf128(void) {
987 union ldshape ux;987 union ldshape ux;
988 ux.i2.hi = 0x7fff000000000000UL;988 ux.i2.hi = 0x7fff000000000000UL;
989 ux.i2.lo = 0x0UL;989 ux.i2.lo = 0x0UL;
990 return ux.f;990 return ux.f;
991}991}
992992
993static inline float128_t makeNaN128() {993static inline float128_t makeNaN128(void) {
994 uint64_t rand = 0UL;994 uint64_t rand = 0UL;
995 union ldshape ux;995 union ldshape ux;
996 ux.i2.hi = 0x7fff000000000000UL | (rand & 0xffffffffffffUL);996 ux.i2.hi = 0x7fff000000000000UL | (rand & 0xffffffffffffUL);