[Bug 288778] [libm] Fix undefined behavior of a left shifted of a signed integer
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Aug 2025 05:28:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288778
--- Comment #5 from Konstantin Belousov <kib@FreeBSD.org> ---
(In reply to Konstantin Belousov from comment #4)
diff --git a/lib/msun/src/s_remquo.c b/lib/msun/src/s_remquo.c
index ac6bce75403f..6e468b019c5c 100644
--- a/lib/msun/src/s_remquo.c
+++ b/lib/msun/src/s_remquo.c
@@ -53,7 +53,7 @@ remquo(double x, double y, int *quo)
}
/* determine ix = ilogb(x) */
- if(hx<0x00100000) {
+ if(hx<0x00100000)
ix = subnormal_ilogb(hx, lx);
else
ix = (hx>>20)-1023;
--
You are receiving this mail because:
You are the assignee for the bug.