Skip to content
Snippets Groups Projects
  • Florian Loitsch's avatar
    Avoid negative shift. · 1921cb37
    Florian Loitsch authored
    When filling in fractional digits in a fixed representation we
    might use all existing digits. When this happens, we can not look
    at the next digit to see if we should round up.
    
    Before this fix, we tried to shift by a negative amount to see if the
    (non-existing) next bit was set to 1 (requiring the number to be rounded up).
    
    Fixes #41.
    1921cb37