Skip to content

Commit 8ea4f1d

Browse files
committed
Don't access floating point environment on windows platform
1 parent 565565b commit 8ea4f1d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/benchmark_libbid.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,10 @@ int main()
349349
// One time init of random number generator
350350
srand(time(NULL));
351351

352+
#ifndef _WIN32
352353
fedisableexcept(FE_ALL_EXCEPT);
353-
354+
#endif
355+
354356
Decimal32* d32_array = malloc(K * sizeof(Decimal32));
355357
Decimal64* d64_array = malloc(K * sizeof(Decimal64));
356358
Decimal128* d128_array = malloc(K * sizeof(Decimal128));

0 commit comments

Comments
 (0)