small fixes
This commit is contained in:
@@ -88,9 +88,11 @@ struct pk_field_locator {
|
||||
desc.kind = pk_kind::uuid;
|
||||
|
||||
desc.is_known_at = [](void *obj, const std::size_t off) -> bool {
|
||||
auto *p = reinterpret_cast<uuid16 *>(static_cast<std::uint8_t *>(obj) + off);
|
||||
const auto *p = reinterpret_cast<uuid16 *>(static_cast<std::uint8_t *>(obj) + off);
|
||||
// “unknown” = all zeros
|
||||
for (auto b: *p) { if (b != 0) return true; }
|
||||
for (const auto b: *p) {
|
||||
if (b != 0) return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user