* [PATCH, libgcc] Bug fix in udivmodhi4.c
@ 2018-12-05 14:26 Paul Koning
0 siblings, 0 replies; only message in thread
From: Paul Koning @ 2018-12-05 14:26 UTC (permalink / raw)
To: GCC Patches
This fixes a cut & paste oversight in udivmodhi4 (which is currently used only by the pdp11 target) reported by Stefan Kanthak.
Committed as obvious.
paul
ChangeLog:
2018-12-05 Paul Koning <ni1d@arrl.net>
* udivmodhi4.c (__udivmodhi4): Fix loop end check.
Index: libgcc/udivmodhi4.c
===================================================================
--- libgcc/udivmodhi4.c (revision 266823)
+++ libgcc/udivmodhi4.c (working copy)
@@ -27,7 +27,7 @@ __udivmodhi4(unsigned short num, unsigned short de
unsigned short bit = 1;
unsigned short res = 0;
- while (den < num && bit && !(den & (1L<<31)))
+ while (den < num && bit && !(den & (1U<<15)))
{
den <<=1;
bit <<=1;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-12-05 14:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-05 14:26 [PATCH, libgcc] Bug fix in udivmodhi4.c Paul Koning
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).