Avoid an unnecessary case in the Encode function

refs #12509
This commit is contained in:
Gunnar Beutner 2016-08-27 12:20:54 +02:00
parent 45c1e57842
commit 27a23fcff6
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ static void Encode(yajl_gen handle, const Value& value)
{
switch (value.GetType()) {
case ValueNumber:
if (yajl_gen_double(handle, static_cast<double>(value)) == yajl_gen_invalid_number)
if (yajl_gen_double(handle, value.Get<double>()) == yajl_gen_invalid_number)
yajl_gen_double(handle, 0);
break;