Skip to content

Commit 0ca98f0

Browse files
committed
Use #if not def _WIN32
1 parent e30ab3e commit 0ca98f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libbf.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,9 +1711,11 @@ static int __bf_div(bf_t *r, const bf_t *a, const bf_t *b, limb_t prec,
17111711

17121712
na = n + nb;
17131713

1714-
if (sizeof(limb_t) > sizeof(uint64_t) && na >= (SIZE_MAX / sizeof(limb_t)) - 1) {
1714+
#if !defined(_WIN32)
1715+
if (na >= (SIZE_MAX / sizeof(limb_t)) - 1) {
17151716
return BF_ST_MEM_ERROR; /* Return memory error status */
17161717
}
1718+
#endif
17171719

17181720
taba = bf_malloc(s, (na + 1) * sizeof(limb_t));
17191721
if (!taba)

0 commit comments

Comments
 (0)