projects
/
ieee754fpu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
stop at end of mask index
[ieee754fpu.git]
/
src
/
ieee754
/
part_mul_add
/
partpoints.py
diff --git
a/src/ieee754/part_mul_add/partpoints.py
b/src/ieee754/part_mul_add/partpoints.py
index efc55e4128e6ef38e928ebc7646f3391c4bb2f3a..e138490be2d8a14083a7e5cd33e7ac135251fc6a 100644
(file)
--- a/
src/ieee754/part_mul_add/partpoints.py
+++ b/
src/ieee754/part_mul_add/partpoints.py
@@
-18,7
+18,7
@@
def make_partition(mask, width):
mlen = mask.shape()[0]
ppos = mlen
midx = 0
- while ppos < width
-1
: # -1, ignore last bit
+ while ppos < width
and midx < mlen
: # -1, ignore last bit
ppoints[ppos] = mask[midx]
ppos += mlen
midx += 1