Updated upb dep to the latest 23.x commit. (#13043)

* Updated upb dep to the latest 23.x commit.

* Updated upb dep to the latest 23.x commit.
pull/13046/head
ericsalo 2 years ago committed by GitHub
parent f5efaf9c31
commit bea53aa693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      php/ext/google/protobuf/php-upb.c
  2. 4
      protobuf_deps.bzl
  3. 6
      ruby/ext/google/protobuf_c/ruby-upb.c

@ -518,9 +518,9 @@ upb_MapInsertStatus upb_Map_Insert(upb_Map* map, upb_MessageValue key,
bool upb_Map_Delete(upb_Map* map, upb_MessageValue key, upb_MessageValue* val) {
upb_value v;
const bool ok = _upb_Map_Delete(map, &key, map->key_size, &v);
if (val) val->uint64_val = v.val;
return ok;
const bool removed = _upb_Map_Delete(map, &key, map->key_size, &v);
if (val) _upb_map_fromvalue(v, val, map->val_size);
return removed;
}
bool upb_Map_Next(const upb_Map* map, upb_MessageValue* key,

@ -151,7 +151,7 @@ def protobuf_deps():
_github_archive(
name = "upb",
repo = "https://github.com/protocolbuffers/upb",
commit = "e8161b8d42d057a95cf38ea7bce223f84f24a656",
sha256 = "8de5c7e3210687fcea2d0a18e1ba1bca1f1f3a042e1f0bac06d93a12391c0050",
commit = "1956df14832979471d0c79210a817aeb54f7a526",
sha256 = "102039feae921205690d28561d6c74ba13e0561a76d7247de5df7d7cc8d72ca6",
patches = ["@com_google_protobuf//build_defs:upb.patch"],
)

@ -518,9 +518,9 @@ upb_MapInsertStatus upb_Map_Insert(upb_Map* map, upb_MessageValue key,
bool upb_Map_Delete(upb_Map* map, upb_MessageValue key, upb_MessageValue* val) {
upb_value v;
const bool ok = _upb_Map_Delete(map, &key, map->key_size, &v);
if (val) val->uint64_val = v.val;
return ok;
const bool removed = _upb_Map_Delete(map, &key, map->key_size, &v);
if (val) _upb_map_fromvalue(v, val, map->val_size);
return removed;
}
bool upb_Map_Next(const upb_Map* map, upb_MessageValue* key,

Loading…
Cancel
Save