You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5123 Reporter: profjim Status: closed (set by @damiendoligez on 2010-08-18T13:22:56Z) Resolution: fixed Priority: normal Severity: tweak Version: 3.12.0 Fixed in version: 3.12.1+dev Category: ~DO NOT USE (was: OCaml general)
Original bug ID: 5123
Reporter: profjim
Status: closed (set by @damiendoligez on 2010-08-18T13:22:56Z)
Resolution: fixed
Priority: normal
Severity: tweak
Version: 3.12.0
Fixed in version: 3.12.1+dev
Category: ~DO NOT USE (was: OCaml general)
Bug description
compare Big_int.(shift_right_big_int (big_int_of_int 1) 1) (Big_int.zero_big_int);;
This is because the shift_right methods just copy over the sign of the first argument, without checking whether the value has gone to zero. However:
compare Big_int.(add_big_int (shift_right_big_int (big_int_of_int 1) 1) zero_big_int) (Big_int.zero_big_int);;
The text was updated successfully, but these errors were encountered: