Commit d8dd3d65 authored by Pierre Langlois's avatar Pierre Langlois Committed by Commit Bot

[cctest] Use 'strtoull' when decoding an address from the log.

We were using 'strtoll' which returns a signed integer, we should have used
'strtoull' instead.

Change-Id: Ie2e48ecc1fa58cff4b61fcea30087608769a80bb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1893333Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Pierre Langlois <pierre.langlois@arm.com>
Cr-Commit-Position: refs/heads/master@{#64765}
parent d710756a
......@@ -170,7 +170,7 @@ class ScopedLoggerInitializer {
// conditions will be triggered.
if (address_column >= columns.size()) continue;
uintptr_t address =
strtoll(columns.at(address_column).c_str(), nullptr, 16);
strtoull(columns.at(address_column).c_str(), nullptr, 16);
if (address == 0) continue;
if (!allow_duplicates) {
auto match = map.find(address);
......
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