From 09ede38dc4c11035aae47836f5f351fb03538689 Mon Sep 17 00:00:00 2001 From: Nate Williams Date: Tue, 1 Dec 1998 05:29:06 +0000 Subject: [PATCH] - Fix modulo bug. Reminded by: bde --- sys/libkern/moddi3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/libkern/moddi3.c b/sys/libkern/moddi3.c index 0e87656a7678..d914dc17be64 100644 --- a/sys/libkern/moddi3.c +++ b/sys/libkern/moddi3.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: moddi3.c,v 1.5 1997/02/22 09:39:56 peter Exp $ */ #include @@ -57,7 +57,7 @@ __moddi3(a, b) else ua = a, neg = 0; if (b < 0) - ub = -(u_quad_t)b, neg ^= 1; + ub = -(u_quad_t)b; else ub = b; (void)__qdivrem(ua, ub, &ur);