From dd32a44bc07fe36d8c777e745b0b509ce2e55a2c Mon Sep 17 00:00:00 2001 From: Christopher Celio Date: Fri, 7 Sep 2012 22:30:49 -0700 Subject: Fixed bug with mul.c --- softint/mul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/softint/mul.c b/softint/mul.c index 45cff00..1907dba 100644 --- a/softint/mul.c +++ b/softint/mul.c @@ -7,7 +7,7 @@ long softint_mul( long x, long y ) int i; long result = 0; - for (i = 0; i < sizeof(long); i++) { + for (i = 0; i < (sizeof(long) << 3); i++) { if ((x & 0x1) == 1) result = result + y; -- cgit v1.1