Fix usage of pow to C99 standard compliance
authorPasi Petäjäjärvi <pasi.petajajarvi@theqtcompany.com>
Wed, 21 Jan 2015 14:02:17 +0000 (16:02 +0200)
committerPasi Petäjäjärvi <pasi.petajajarvi@theqtcompany.com>
Wed, 21 Jan 2015 15:21:06 +0000 (16:21 +0100)
Change-Id: I37c25b848dd3f53afff360d81a3a685cbd8e5d26
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4globalobject.cpp

index 9a9de8b..77bc9f5 100644 (file)
@@ -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<double>(R), static_cast<double>(overflow_digit_count));
         result += v;
         return Encode(sign * result);
     } else {