#7878 closed Bugs (fixed)
Bug in integer division (assertion failed)
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | multiprecision |
Version: | Boost 1.53.0 | Severity: | Problem |
Keywords: | division | Cc: |
Description
boost::multiprecision::cpp_int a("79228162477370849454714781695"); a /= 0xFFFFFFFF;
This code generates the following runtime error:
Assertion failed: r.compare(y) < 0, file H:\prg\boost_1_53_0_beta1/boost/multiprecision/cpp_int/divide.hpp, line 438
Tested on MinGW, GCC 4.7.1
Change History (3)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Here is more simple example: 0x10000000100000001 / 1.
I'm testing it on 32-bit computer.