diff options
author | Shauren <shauren.trinity@gmail.com> | 2017-06-07 17:23:50 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2017-06-07 17:23:50 +0200 |
commit | 4226eb2ea56a13f1e499b80e51cb73748cff82a1 (patch) | |
tree | 3cf644eaebb18b2426583c948d163d14176a220b /src/server/shared/JSON | |
parent | 7e9a0414708ed1f9373c4c0e87ade501d3f7bc98 (diff) |
Core/Misc: Some /W4 warning fixes
Diffstat (limited to 'src/server/shared/JSON')
-rw-r--r-- | src/server/shared/JSON/ProtobufJSON.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |