Skip to content
Snippets Groups Projects

fix: use values that are representable as double in test

Merged Ansgar Burchardt requested to merge fix-gcc-13-on-i386 into master

Values like 0.1 are not representable as a double which can result in problems, for example:

[...]/dune/common/test/hybridutilitiestest.cc:114:43: error: static assertion failed: Wrong compile time sum!
  114 |   static_assert(sum(numberTupleConstexpr) == 5.1, "Wrong compile time sum!");
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
[...]/dune/common/test/hybridutilitiestest.cc:114:43: note: the comparison reduces to ‘(5.09999999999999964473e+0l == 5.09999999999999999991e+0l)’

with gcc 13.2.0 on i386.

Merge request reports

Merge request pipeline passed for f61fb0db

Approval is optional

Merged by Ansgar BurchardtAnsgar Burchardt 1 year ago (Dec 26, 2023 2:32pm UTC)

Merge details

  • Changes merged into with 825f70ca.
  • Deleted the source branch.
  • Auto-merge enabled

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading