From 85f52013961d65f80aaca6dea7e87baac56560b3 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Mon, 8 Apr 2024 22:03:45 +0000 Subject: [PATCH] Auto-generate files after cl/622958098 --- php/ext/google/protobuf/php-upb.c | 3 +-- ruby/ext/google/protobuf_c/ruby-upb.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/php/ext/google/protobuf/php-upb.c b/php/ext/google/protobuf/php-upb.c index 363da932e5..70bd97f8ad 100644 --- a/php/ext/google/protobuf/php-upb.c +++ b/php/ext/google/protobuf/php-upb.c @@ -10631,8 +10631,7 @@ UPB_NOINLINE UPB_PRIVATE(_upb_WireReader_LongVarint) UPB_PRIVATE(_upb_WireReader_ReadLongVarint)(const char* ptr, uint64_t val) { UPB_PRIVATE(_upb_WireReader_LongVarint) ret = {NULL, 0}; uint64_t byte; - int i; - for (i = 1; i < 10; i++) { + for (int i = 1; i < 10; i++) { byte = (uint8_t)ptr[i]; val += (byte - 1) << (i * 7); if (!(byte & 0x80)) { diff --git a/ruby/ext/google/protobuf_c/ruby-upb.c b/ruby/ext/google/protobuf_c/ruby-upb.c index d83b238e22..8897297ff3 100644 --- a/ruby/ext/google/protobuf_c/ruby-upb.c +++ b/ruby/ext/google/protobuf_c/ruby-upb.c @@ -10124,8 +10124,7 @@ UPB_NOINLINE UPB_PRIVATE(_upb_WireReader_LongVarint) UPB_PRIVATE(_upb_WireReader_ReadLongVarint)(const char* ptr, uint64_t val) { UPB_PRIVATE(_upb_WireReader_LongVarint) ret = {NULL, 0}; uint64_t byte; - int i; - for (i = 1; i < 10; i++) { + for (int i = 1; i < 10; i++) { byte = (uint8_t)ptr[i]; val += (byte - 1) << (i * 7); if (!(byte & 0x80)) {