Bug 441303 - jsutil.cpp does not compile with Visual Studio 2003. r=crowder
authorRobert Longson <longsonr@gmail.com>
Wed, 25 Jun 2008 15:06:43 +0100
changeset 15527 57f12ae323d0f6af05fda39b7b38183d5bd3c815
parent 15526 44c589bd2a7b81d750acd26b870209f877847b00
child 15528 0817b336d9c6e8909b5bc953c73caabe3eb611f9
push id287
push userlongsonr@gmail.com
push dateWed, 25 Jun 2008 14:07:27 +0000
treeherdermozilla-central@57f12ae323d0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscrowder
bugs441303
milestone1.9.1a1pre
Bug 441303 - jsutil.cpp does not compile with Visual Studio 2003. r=crowder
js/src/jsutil.cpp
--- a/js/src/jsutil.cpp
+++ b/js/src/jsutil.cpp
@@ -84,17 +84,17 @@ BinToVal(uintN logscale, uintN bin)
 {
     JS_ASSERT(bin <= 10);
     if (bin <= 1 || logscale == 0)
         return bin;
     --bin;
     if (logscale == 2)
         return JS_BIT(bin);
     JS_ASSERT(logscale == 10);
-    return (uint32) pow(10, (double) bin);
+    return (uint32) pow(10.0, (double) bin);
 }
 
 static uintN
 ValToBin(uintN logscale, uint32 val)
 {
     uintN bin;
 
     if (val <= 1)