Core/Misc: Some /W4 warning fixes

This commit is contained in:
Shauren
2017-06-07 17:23:50 +02:00
parent 7e9a041470
commit 4226eb2ea5
18 changed files with 38 additions and 38 deletions

View File

@@ -325,7 +325,7 @@ bool Deserializer::Double(double d)
switch (field->cpp_type())
{
case google::protobuf::FieldDescriptor::CPPTYPE_FLOAT:
SET_FIELD(message, field, Float, d);
SET_FIELD(message, field, Float, float(d));
break;
case google::protobuf::FieldDescriptor::CPPTYPE_DOUBLE:
SET_FIELD(message, field, Double, d);