Fixed modsi3
authorlekernel <sebastien.bourdeauducq@lekernel.net>
Fri, 21 Aug 2009 22:02:59 +0000 (00:02 +0200)
committerlekernel <sebastien.bourdeauducq@lekernel.net>
Fri, 21 Aug 2009 22:02:59 +0000 (00:02 +0200)
milkymist-core/software/baselib/divsi3.c

index 0c8881b..2519cbb 100644 (file)
@@ -43,7 +43,7 @@ long __modsi3 (long numerator, long denominator)
        if(denominator < 0)
                denominator = -denominator;
 
-       res = numerator % denominator;
+       res = (unsigned int)numerator % (unsigned int)denominator;
 
        if(sign)
                return -res;