Commit 89fe1eb4 authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Make downcast to float explicit

Summary: Because explicit is better.

Reviewed By: sathyaphoenix

Differential Revision: D9834733

fbshipit-source-id: 6e6af1d5215021db522284b6c58c753522df20df
parent 7aeeb5c1
......@@ -694,7 +694,7 @@ toAppend(
conv.ToShortest(value, &builder);
break;
case DoubleToStringConverter::SHORTEST_SINGLE:
conv.ToShortestSingle(value, &builder);
conv.ToShortestSingle(static_cast<float>(value), &builder);
break;
case DoubleToStringConverter::FIXED:
conv.ToFixed(value, int(numDigits), &builder);
......
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