Skip to content

Commit

Permalink
Update resizeRawFloat.scala (#80)
Browse files Browse the repository at this point in the history
This code would actually cause an "high index XX is out of range" error
  • Loading branch information
FJShen authored Oct 20, 2023
1 parent d93aa57 commit cdb51a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardfloat/src/main/scala/resizeRawFloat.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ object resizeRawFloat
(if (in.sigWidth <= sigWidth)
in.sig<<(sigWidth - in.sigWidth)
else
in.sig(in.sigWidth + 2, in.sigWidth - sigWidth + 1) ##
in.sig(in.sigWidth, in.sigWidth - sigWidth + 1) ##
in.sig(in.sigWidth - sigWidth, 0).orR
)
out
Expand Down

0 comments on commit cdb51a7

Please sign in to comment.