aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--softint/mul.c2
1 files changed, 1 insertions, 1 deletions
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;