| Index: third_party/protobuf/src/google/protobuf/compiler/python/python_generator.cc
|
| diff --git a/third_party/protobuf/src/google/protobuf/compiler/python/python_generator.cc b/third_party/protobuf/src/google/protobuf/compiler/python/python_generator.cc
|
| index 4d500f90e9cc591a676ceef90fb6d37f6da41072..0553dd0d9d37456e0255cc80ecafbfce503f2583 100644
|
| --- a/third_party/protobuf/src/google/protobuf/compiler/python/python_generator.cc
|
| +++ b/third_party/protobuf/src/google/protobuf/compiler/python/python_generator.cc
|
| @@ -235,7 +235,7 @@ string StringifyDefaultValue(const FieldDescriptor& field) {
|
| // infinity * 0 = nan
|
| return "(1e10000 * 0)";
|
| } else {
|
| - return SimpleDtoa(value);
|
| + return "float(" + SimpleDtoa(value) + ")";
|
| }
|
| }
|
| case FieldDescriptor::CPPTYPE_FLOAT: {
|
| @@ -251,7 +251,7 @@ string StringifyDefaultValue(const FieldDescriptor& field) {
|
| // infinity - infinity = nan
|
| return "(1e10000 * 0)";
|
| } else {
|
| - return SimpleFtoa(value);
|
| + return "float(" + SimpleFtoa(value) + ")";
|
| }
|
| }
|
| case FieldDescriptor::CPPTYPE_BOOL:
|
|
|