diff options
author | Christopher Celio <celio@eecs.berkeley.edu> | 2012-09-07 22:30:49 -0700 |
---|---|---|
committer | Christopher Celio <celio@eecs.berkeley.edu> | 2012-09-07 22:30:49 -0700 |
commit | dd32a44bc07fe36d8c777e745b0b509ce2e55a2c (patch) | |
tree | a81d5b7ec230f99176fb4ca04d95a1fd454d1134 /softint | |
parent | d6a522404a38405ecfad78839d4c29bf5cb02e9b (diff) | |
download | pk-dd32a44bc07fe36d8c777e745b0b509ce2e55a2c.zip pk-dd32a44bc07fe36d8c777e745b0b509ce2e55a2c.tar.gz pk-dd32a44bc07fe36d8c777e745b0b509ce2e55a2c.tar.bz2 |
Fixed bug with mul.c
Diffstat (limited to 'softint')
-rw-r--r-- | softint/mul.c | 2 |
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; |