diff options
Diffstat (limited to 'src/server/shared/JSON/ProtobufJSON.cpp')
-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); |