Skip to content

Commit 39094e6

Browse files
committed
Update on "Use merged data map in module"
Differential Revision: [D83799869](https://our.internmc.facebook.com/intern/diff/D83799869/) [ghstack-poisoned]
2 parents b531f70 + a10cd8a commit 39094e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/named_data_map/merged_data_map.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace ET_MERGED_DATA_MAP_NAMESPACE {
3838

3939
// Check for duplicate keys.
4040
std::unordered_map<std::string, uint32_t> key_to_map_index;
41-
for (auto i : c10::irange(valid_data_maps.size())) {
41+
for (const uint32_t i : c10::irange(valid_data_maps.size())) {
4242
const auto cur_map = valid_data_maps[i];
4343
uint32_t num_keys = cur_map->get_num_keys().get();
4444
for (auto j : c10::irange(num_keys)) {
@@ -47,7 +47,7 @@ namespace ET_MERGED_DATA_MAP_NAMESPACE {
4747
ET_CHECK_OR_RETURN_ERROR(
4848
inserted,
4949
InvalidArgument,
50-
"Duplicate key %s in named data maps at index %u and %lu",
50+
"Duplicate key %s in named data maps at index %u and %" PRIu32,
5151
cur_key,
5252
it->second,
5353
i);

0 commit comments

Comments
 (0)