Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / wtf / dtoa / bignum-dtoa.cc
index 7f2551b..ca25e2e 100644 (file)
@@ -184,7 +184,7 @@ namespace double_conversion {
             ASSERT(digit <= 9);  // digit is a uint16_t and therefore always positive.
             // digit = numerator / denominator (integer division).
             // numerator = numerator % denominator.
-            buffer[(*length)++] = digit + '0';
+            buffer[(*length)++] = static_cast<char>(digit + '0');
 
             // Can we stop already?
             // If the remainder of the division is less than the distance to the lower
@@ -276,7 +276,7 @@ namespace double_conversion {
             ASSERT(digit <= 9);  // digit is a uint16_t and therefore always positive.
             // digit = numerator / denominator (integer division).
             // numerator = numerator % denominator.
-            buffer[i] = digit + '0';
+            buffer[i] = static_cast<char>(digit + '0');
             // Prepare for next iteration.
             numerator->Times10();
         }
@@ -286,7 +286,7 @@ namespace double_conversion {
         if (Bignum::PlusCompare(*numerator, *numerator, *denominator) >= 0) {
             digit++;
         }
-        buffer[count - 1] = digit + '0';
+        buffer[count - 1] = static_cast<char>(digit + '0');
         // Correct bad digits (in case we had a sequence of '9's). Propagate the
         // carry until we hat a non-'9' or til we reach the first digit.
         for (int i = count - 1; i > 0; --i) {