• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bemanproject / big_int / 32258094846
92%

Build:
DEFAULT BRANCH: main
Ran 19 Aug 2026 01:31PM UTC
Jobs 1
Files 28
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Aug 2026 01:26PM UTC coverage: 96.501%. Remained the same
32258094846

push

github

web-flow
Fix the non-canonical magnitude left by decrement across a limb boundary (#332)

unchecked_decrement_magnitude trimmed nothing when the borrow stopped inside the
magnitude, so a decrement that zeroed the top limb left limb_count() too high
and broke the trimmed-top-limb invariant. The increment sibling already handled
its mirror case by extending the count on carry-out, so growth was covered and
shrinking was not. ++ on a negative and both operator~ overloads reach the same
path.

Comparison still reported the right value, so the pre-existing
PrefixDecrementAllocatedBorrowChain passed, but width_mag() read 0 and
everything downstream of it was wrong: the free operator>> discarded the value
because it exits early when the shift is at or beyond width_mag(), to_string and
to_chars printed 0, size() and representation_size() read 0, std::hash disagreed
for equal values, and shrink_to_fit() could not return the value to the in-place
buffer.

The tests assert the representation rather than the value, since asserting the
value is what let this through. Prefix and postfix decrement, increment on
negatives, both operator~ overloads and the in-place path via
basic_big_int<256> are covered at 2^64, 2^128 and 2^192, with the magnitude
observers at 2^128 and shrink_to_fit at 2^64. is_normalized moved to testing.hpp
because hash.test.cpp needs it too, and the consteval cases catch the bug at
compile time.

1 of 1 new or added line in 1 file covered. (100.0%)

5985 of 6202 relevant lines covered (96.5%)

3161089.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32258094846.1 19 Aug 2026 01:31PM UTC 28
96.5
GitHub Action Run
Source Files on build 32258094846
  • Tree
  • List 28
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #32258094846
  • 1df15405 on github
  • Prev Build on main (#32160237367)
  • Next Build on main (#32262481178)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc