|
|
@ -426,7 +426,8 @@ failure: |
|
|
|
(void) cached_has_bits; |
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
|
|
// double value = 1;
|
|
|
|
// double value = 1;
|
|
|
|
static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); |
|
|
|
static_assert(sizeof(::uint64_t) == sizeof(double), |
|
|
|
|
|
|
|
"Code assumes ::uint64_t and double are the same size."); |
|
|
|
double tmp_value = this->_internal_value(); |
|
|
|
double tmp_value = this->_internal_value(); |
|
|
|
::uint64_t raw_value; |
|
|
|
::uint64_t raw_value; |
|
|
|
memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); |
|
|
|
memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); |
|
|
@ -453,7 +454,8 @@ failure: |
|
|
|
(void) cached_has_bits; |
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
|
|
// double value = 1;
|
|
|
|
// double value = 1;
|
|
|
|
static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); |
|
|
|
static_assert(sizeof(::uint64_t) == sizeof(double), |
|
|
|
|
|
|
|
"Code assumes ::uint64_t and double are the same size."); |
|
|
|
double tmp_value = this->_internal_value(); |
|
|
|
double tmp_value = this->_internal_value(); |
|
|
|
::uint64_t raw_value; |
|
|
|
::uint64_t raw_value; |
|
|
|
memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); |
|
|
|
memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); |
|
|
@ -479,7 +481,8 @@ void DoubleValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google: |
|
|
|
::uint32_t cached_has_bits = 0; |
|
|
|
::uint32_t cached_has_bits = 0; |
|
|
|
(void) cached_has_bits; |
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
|
|
static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); |
|
|
|
static_assert(sizeof(::uint64_t) == sizeof(double), |
|
|
|
|
|
|
|
"Code assumes ::uint64_t and double are the same size."); |
|
|
|
double tmp_value = from._internal_value(); |
|
|
|
double tmp_value = from._internal_value(); |
|
|
|
::uint64_t raw_value; |
|
|
|
::uint64_t raw_value; |
|
|
|
memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); |
|
|
|
memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); |
|
|
@ -610,7 +613,8 @@ failure: |
|
|
|
(void) cached_has_bits; |
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
|
|
// float value = 1;
|
|
|
|
// float value = 1;
|
|
|
|
static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); |
|
|
|
static_assert(sizeof(::uint32_t) == sizeof(float), |
|
|
|
|
|
|
|
"Code assumes ::uint32_t and float are the same size."); |
|
|
|
float tmp_value = this->_internal_value(); |
|
|
|
float tmp_value = this->_internal_value(); |
|
|
|
::uint32_t raw_value; |
|
|
|
::uint32_t raw_value; |
|
|
|
memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); |
|
|
|
memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); |
|
|
@ -637,7 +641,8 @@ failure: |
|
|
|
(void) cached_has_bits; |
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
|
|
// float value = 1;
|
|
|
|
// float value = 1;
|
|
|
|
static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); |
|
|
|
static_assert(sizeof(::uint32_t) == sizeof(float), |
|
|
|
|
|
|
|
"Code assumes ::uint32_t and float are the same size."); |
|
|
|
float tmp_value = this->_internal_value(); |
|
|
|
float tmp_value = this->_internal_value(); |
|
|
|
::uint32_t raw_value; |
|
|
|
::uint32_t raw_value; |
|
|
|
memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); |
|
|
|
memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); |
|
|
@ -663,7 +668,8 @@ void FloatValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google:: |
|
|
|
::uint32_t cached_has_bits = 0; |
|
|
|
::uint32_t cached_has_bits = 0; |
|
|
|
(void) cached_has_bits; |
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
|
|
static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); |
|
|
|
static_assert(sizeof(::uint32_t) == sizeof(float), |
|
|
|
|
|
|
|
"Code assumes ::uint32_t and float are the same size."); |
|
|
|
float tmp_value = from._internal_value(); |
|
|
|
float tmp_value = from._internal_value(); |
|
|
|
::uint32_t raw_value; |
|
|
|
::uint32_t raw_value; |
|
|
|
memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); |
|
|
|
memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); |
|
|
|