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

tarantool / tarantool / 6351320194

29 Sep 2023 12:02PM UTC coverage: 85.225% (+0.007%) from 85.218%
6351320194

push

github

sergepetrenko
core: fix a wrong assertion on decimal comparison with double

mp_compare_decimal_any_number erroneously assumed that any float or
double from which a decimal can't be created is either infinite or NaN.
This is not true. Any float greater than 1e38 can't fit into our decimal
representation. When such a float got compared to a decimal, an
assertion fired, which was wrong. Luckily, on release build the
comparison was correct. Only the assertion is wrong. Fix it.

Closes #8472

NO_DOC=bugfix

(cherry picked from commit f1b238960)

59302 of 108202 branches covered (0.0%)

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

90504 of 106194 relevant lines covered (85.23%)

2178586.58 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.08
/src/box/vy_scheduler.c


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc