From: Pasi Petäjäjärvi Date: Wed, 21 Jan 2015 14:02:17 +0000 (+0200) Subject: Fix usage of pow to C99 standard compliance X-Git-Tag: v5.5.90+alpha1~3^2~242^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b3ac8e2e0944fb6025371c2ff37db350fef69fd;p=platform%2Fupstream%2Fqtdeclarative.git Fix usage of pow to C99 standard compliance Change-Id: I37c25b848dd3f53afff360d81a3a685cbd8e5d26 Reviewed-by: Simon Hausmann --- diff --git a/src/qml/jsruntime/qv4globalobject.cpp b/src/qml/jsruntime/qv4globalobject.cpp index 9a9de8b..77bc9f5 100644 --- a/src/qml/jsruntime/qv4globalobject.cpp +++ b/src/qml/jsruntime/qv4globalobject.cpp @@ -502,7 +502,7 @@ ReturnedValue GlobalFunctions::method_parseInt(CallContext *ctx) } if (overflow) { - double result = (double) v_overflow * pow(R, overflow_digit_count); + double result = (double) v_overflow * pow(static_cast(R), static_cast(overflow_digit_count)); result += v; return Encode(sign * result); } else {