Align types of location_table_ and mapping_table_ keys (-Wshorten-64-to-32).

PiperOrigin-RevId: 786713025
Change-Id: I0e5489899f2960d71e39dc58f5033bef3a52e36c
This commit is contained in:
Abseil Team
2025-07-24 08:22:36 -07:00
committed by Copybara-Service
parent 6ad95e1535
commit 8a3065cd5c

View File

@@ -16,6 +16,7 @@
#ifndef ABSL_PROFILING_INTERNAL_PROFILE_BUILDER_H_
#define ABSL_PROFILING_INTERNAL_PROFILE_BUILDER_H_
#include <cstddef>
#include <cstdint>
#include <string>
#include <vector>
@@ -116,7 +117,7 @@ class ProfileBuilder {
private:
absl::flat_hash_map<std::string, StringId> string_table_{{"", StringId(0)}};
absl::flat_hash_map<uint64_t, LocationId> location_table_;
absl::flat_hash_map<uintptr_t, LocationId> location_table_;
// mapping_table_ stores the start address of each mapping in mapping_
// to its index.
absl::btree_map<uintptr_t, size_t> mapping_table_;