From: John Hodge Date: Tue, 13 Jul 2010 13:07:27 +0000 (+0800) Subject: And the same for udivdi3, [TPG]: you are a ning-nong X-Git-Tag: rel0.06~112 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=7f065c57ac959002ccff1543498a57ed5f7d337f;p=tpg%2Facess2.git And the same for udivdi3, [TPG]: you are a ning-nong --- diff --git a/Usermode/Libraries/libgcc.so_src/libgcc.c b/Usermode/Libraries/libgcc.so_src/libgcc.c index f88b6632..8f6021f2 100644 --- a/Usermode/Libraries/libgcc.so_src/libgcc.c +++ b/Usermode/Libraries/libgcc.so_src/libgcc.c @@ -53,7 +53,7 @@ uint64_t __udivdi3(uint64_t Num, uint64_t Den) if(Den == 0) __asm__ __volatile__ ("int $0x0"); // Common speedups if(Num <= 0xFFFFFFFF && Den <= 0xFFFFFFFF) - return Num / Den; + return (uint32_t)Num / (uint32_t)Den; if(Den == 1) return Num; if(Den == 2) return Num >> 1; if(Den == 16) return Num >> 4;