From 65319630a2f944799918e6d1c224988c2d9a8bc3 Mon Sep 17 00:00:00 2001 From: fasiondog Date: Mon, 12 Aug 2024 23:45:37 +0800 Subject: [PATCH] update for macosx --- hikyuu/utilities/arithmetic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hikyuu/utilities/arithmetic.h b/hikyuu/utilities/arithmetic.h index fb61df9..cb3d1dd 100644 --- a/hikyuu/utilities/arithmetic.h +++ b/hikyuu/utilities/arithmetic.h @@ -88,11 +88,11 @@ ValueT roundEx(ValueT number, int ndigits = 0) { ValueT pow1, pow2, y, z; ValueT x = number; if (ndigits >= 0) { - pow1 = std::pow((ValueT)10.0, (ValueT)ndigits); + pow1 = std::pow(ValueT(10.0), ValueT(ndigits)); pow2 = 1.0; y = (x * pow1) * pow2; } else { - pow1 = std::pow((ValueT)10.0, (ValueT)-ndigits); + pow1 = std::pow(ValueT(10.0), ValueT(-ndigits)); pow2 = 1.0; y = x / pow1; }