diff options
| author | bd <bdunahu@operationnull.com> | 2025-04-22 20:48:31 -0400 | 
|---|---|---|
| committer | bd <bdunahu@operationnull.com> | 2025-04-22 20:48:31 -0400 | 
| commit | 1bbc5b157e16dae032b5e44a7dcf009766eb9ca5 (patch) | |
| tree | 02a1439bf92c58656fe99973a3391ffc38635330 /inc/ex.h | |
| parent | 3d0133c2f793e82d7519d8e2c5023114cd0f0eab (diff) | |
Fix bug where checking for multiplication overflow resulted in FPE
Diffstat (limited to 'inc/ex.h')
| -rw-r--r-- | inc/ex.h | 2 | 
1 files changed, 1 insertions, 1 deletions
| @@ -41,7 +41,7 @@  	 ((b < 0) && (a < 0) && (a < MAX_INT / b)))  #define MULTIPLICATION_UF_GUARD(a, b) \ -	(b != 0) && \ +	(b != 0) && (b != -1) && \  	(((b > 0) && (a < 0) && (a < (-(MAX_INT)-1) / b)) || \  	 ((b < 0) && (a > 0) && (a > (-(MAX_INT)-1) / b))) | 
