From 2d65bea0ea52237f5ba4096ac9b6cc6e5abce485 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 2 Feb 2014 13:34:03 -0800 Subject: [PATCH] Fix warning. --- src/alloy/runtime/debug_info.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloy/runtime/debug_info.cc b/src/alloy/runtime/debug_info.cc index b7b060ef8..ad6056eec 100644 --- a/src/alloy/runtime/debug_info.cc +++ b/src/alloy/runtime/debug_info.cc @@ -62,7 +62,7 @@ SourceMapEntry* DebugInfo::LookupHIROffset(uint64_t offset) { SourceMapEntry* DebugInfo::LookupCodeOffset(uint64_t offset) { // TODO(benvanik): binary search? We know the list is sorted by code order. - for (int n = source_map_count_ - 1; n >= 0; n--) { + for (int64_t n = source_map_count_ - 1; n >= 0; n--) { auto entry = &source_map_[n]; if (entry->code_offset <= offset) { return entry;