Commit 4ce140dc authored by Dave Tapuska's avatar Dave Tapuska Committed by Commit Bot

Fix 64 bit truncation in tracing

BuitinCategories::Size() returned size_t but the ::At(..) method took
an int. Make these consistent to avoid a 64 bit truncation.

BUG=879657

Change-Id: I7e27f17b709f7070a5234ac53b96438efad0eaf3
Reviewed-on: https://chromium-review.googlesource.com/c/1347570Reviewed-by: default avatarPrimiano Tucci <primiano@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611724}
parent 3c355fbe
......@@ -249,7 +249,7 @@ static_assert(!StrEqConstexpr("abc", "ab"), "strings should not be equal");
class BuiltinCategories {
public:
// Returns a built-in category name at |index| in the registry.
static constexpr const char* At(int index) {
static constexpr const char* At(size_t index) {
return kBuiltinCategories[index];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment