Skip to content

Commit a304e74

Browse files
author
Daniel Kroening
committed
fix in rounder in fixed-point arithmetic class
1 parent 41d7a45 commit a304e74

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/util/fixedbv.cpp

Lines changed: 5 additions & 0 deletions
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)