Skip to content

Commit 78901ef

Browse files
author
Daniel Kroening
committed
fix in rounder in fixed-point arithmetic class
1 parent 88db26f commit 78901ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/util/fixedbv.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ void fixedbvt::round(const fixedbv_spect &dest_spec)
7979

8080
result=div;
8181
}
82+
else // new_faction_bits==old_fraction_vits
83+
{
84+
// no change!
85+
result=v;
86+
}
8287

8388
v=result;
8489
spec=dest_spec;

0 commit comments

Comments
 (0)