Skip to content

Commit cdb51a7

Browse files
authored
Update resizeRawFloat.scala (#80)
This code would actually cause an "high index XX is out of range" error
1 parent d93aa57 commit cdb51a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardfloat/src/main/scala/resizeRawFloat.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ object resizeRawFloat
6969
(if (in.sigWidth <= sigWidth)
7070
in.sig<<(sigWidth - in.sigWidth)
7171
else
72-
in.sig(in.sigWidth + 2, in.sigWidth - sigWidth + 1) ##
72+
in.sig(in.sigWidth, in.sigWidth - sigWidth + 1) ##
7373
in.sig(in.sigWidth - sigWidth, 0).orR
7474
)
7575
out

0 commit comments

Comments
 (0)