From 4226eb2ea56a13f1e499b80e51cb73748cff82a1 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 7 Jun 2017 17:23:50 +0200 Subject: Core/Misc: Some /W4 warning fixes --- src/server/shared/JSON/ProtobufJSON.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/shared/JSON/ProtobufJSON.cpp') diff --git a/src/server/shared/JSON/ProtobufJSON.cpp b/src/server/shared/JSON/ProtobufJSON.cpp index dcf7dc0436f..540d18c7b3f 100644 --- a/src/server/shared/JSON/ProtobufJSON.cpp +++ b/src/server/shared/JSON/ProtobufJSON.cpp @@ -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); -- cgit v1.2.3