File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
#include " cpprest/astreambuf.h"
19
19
#include < iosfwd>
20
+ #include < cstdio>
20
21
21
22
namespace Concurrency
22
23
{
@@ -1434,7 +1435,8 @@ static pplx::task<FloatingPoint> _extract_result(std::shared_ptr<_double_state<F
1434
1435
1435
1436
if (state->exponent_number >= 0 )
1436
1437
{
1437
- result *= pow (FloatingPoint (10.0 ), state->exponent_number );
1438
+ result *= static_cast <FloatingPoint>(
1439
+ std::pow (static_cast <FloatingPoint>(10.0 ), static_cast <FloatingPoint>(state->exponent_number )));
1438
1440
1439
1441
#pragma push_macro("max")
1440
1442
#undef max
@@ -1447,7 +1449,8 @@ static pplx::task<FloatingPoint> _extract_result(std::shared_ptr<_double_state<F
1447
1449
{
1448
1450
bool is_zero = (result == 0 );
1449
1451
1450
- result /= pow (FloatingPoint (10.0 ), -state->exponent_number );
1452
+ result /= static_cast <FloatingPoint>(
1453
+ std::pow (static_cast <FloatingPoint>(10.0 ), static_cast <FloatingPoint>(-state->exponent_number )));
1451
1454
1452
1455
if (!is_zero && result > -std::numeric_limits<FloatingPoint>::denorm_min () &&
1453
1456
result < std::numeric_limits<FloatingPoint>::denorm_min ())
You can’t perform that action at this time.
0 commit comments