Skip to content

Commit

Permalink
Merge pull request #1033 from AtariDreams/constexpr
Browse files Browse the repository at this point in the history
ten should be a constexpr as a float
  • Loading branch information
jzmaddock authored Oct 16, 2023
2 parents 30bb703 + 0e3b29f commit e3e79b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/math/cstdfloat/cstdfloat_iostream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@
if(isneg) { x = -x; }

float_type t;
float_type ten = 10;
constexpr float_type ten = 10;

eval_log10(t, x);
eval_floor(t, t);
Expand Down Expand Up @@ -571,7 +571,7 @@

if((p == static_cast<const char*>(0U)) || (*p == static_cast<char>(0)))
{
return;
return false;
}

bool is_neg = false;
Expand Down

0 comments on commit e3e79b5

Please sign in to comment.