Commit f656e771 authored by Joe Kirchoff's avatar Joe Kirchoff Committed by Facebook Github Bot

Don't static_cast literal value

Summary: Use functional style cast on literal value instead of static_cast

Reviewed By: yfeldblum, jdonald

Differential Revision: D19459138

fbshipit-source-id: 103f644322394779fc5cd8512d7a5244d2231091
parent 6d225aaf
...@@ -575,7 +575,7 @@ inline Expected<Tgt, ConversionCode> digits_to( ...@@ -575,7 +575,7 @@ inline Expected<Tgt, ConversionCode> digits_to(
UT result = 0; UT result = 0;
for (; e - b >= 4; b += 4) { for (; e - b >= 4; b += 4) {
result *= static_cast<UT>(10000); result *= UT(10000);
const int32_t r0 = shift1000[static_cast<size_t>(b[0])]; const int32_t r0 = shift1000[static_cast<size_t>(b[0])];
const int32_t r1 = shift100[static_cast<size_t>(b[1])]; const int32_t r1 = shift100[static_cast<size_t>(b[1])];
const int32_t r2 = shift10[static_cast<size_t>(b[2])]; const int32_t r2 = shift10[static_cast<size_t>(b[2])];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment