Skip to content

Commit

Permalink
Auto-generate files after cl/705148623
Browse files Browse the repository at this point in the history
  • Loading branch information
protobuf-team-bot committed Dec 11, 2024
1 parent 20ea8af commit 2598c6d
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 16 deletions.
4 changes: 2 additions & 2 deletions php/ext/google/protobuf/php-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ static int64_t jsondec_strtoint64(jsondec* d, upb_StringView str) {
static void jsondec_checkempty(jsondec* d, upb_StringView str,
const upb_FieldDef* f) {
if (str.size != 0) return;
d->result = kUpb_JsonDecodeResult_OkWithEmptyStringNumerics;
d->result = kUpb_JsonDecodeResult_Error;
upb_Status_SetErrorFormat(d->status,
"Empty string is not a valid number (field: %s). "
"This will be an error in a future version.",
Expand Down Expand Up @@ -1291,7 +1291,7 @@ static upb_MessageValue jsondec_double(jsondec* d, const upb_FieldDef* f) {
char* end;
val.double_val = strtod(str.data, &end);
if (end != str.data + str.size) {
d->result = kUpb_JsonDecodeResult_OkWithEmptyStringNumerics;
d->result = kUpb_JsonDecodeResult_Error;
upb_Status_SetErrorFormat(
d->status,
"Non-number characters in quoted number (field: %s). "
Expand Down
1 change: 0 additions & 1 deletion php/ext/google/protobuf/php-upb.h
Original file line number Diff line number Diff line change
Expand Up @@ -13404,7 +13404,6 @@ enum { upb_JsonDecode_IgnoreUnknown = 1 };

enum {
kUpb_JsonDecodeResult_Ok = 0,
kUpb_JsonDecodeResult_OkWithEmptyStringNumerics = 1,
kUpb_JsonDecodeResult_Error = 2,
};

Expand Down
4 changes: 2 additions & 2 deletions ruby/ext/google/protobuf_c/ruby-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ static int64_t jsondec_strtoint64(jsondec* d, upb_StringView str) {
static void jsondec_checkempty(jsondec* d, upb_StringView str,
const upb_FieldDef* f) {
if (str.size != 0) return;
d->result = kUpb_JsonDecodeResult_OkWithEmptyStringNumerics;
d->result = kUpb_JsonDecodeResult_Error;
upb_Status_SetErrorFormat(d->status,
"Empty string is not a valid number (field: %s). "
"This will be an error in a future version.",
Expand Down Expand Up @@ -1291,7 +1291,7 @@ static upb_MessageValue jsondec_double(jsondec* d, const upb_FieldDef* f) {
char* end;
val.double_val = strtod(str.data, &end);
if (end != str.data + str.size) {
d->result = kUpb_JsonDecodeResult_OkWithEmptyStringNumerics;
d->result = kUpb_JsonDecodeResult_Error;
upb_Status_SetErrorFormat(
d->status,
"Non-number characters in quoted number (field: %s). "
Expand Down
1 change: 0 additions & 1 deletion ruby/ext/google/protobuf_c/ruby-upb.h
Original file line number Diff line number Diff line change
Expand Up @@ -13406,7 +13406,6 @@ enum { upb_JsonDecode_IgnoreUnknown = 1 };

enum {
kUpb_JsonDecodeResult_Ok = 0,
kUpb_JsonDecodeResult_OkWithEmptyStringNumerics = 1,
kUpb_JsonDecodeResult_Error = 2,
};

Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/empty.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/google/protobuf/struct.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/google/protobuf/type.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions src/google/protobuf/wrappers.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2598c6d

Please sign in to comment.