summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-05-27 16:18:32 +0200
committerGitHub <noreply@github.com>2020-05-27 16:18:32 +0200
commit52814d111c3e522cb320bd7e17c61f914d7b9a3a (patch)
treeff529b4dafa0a53155b57552e310dc16e8427607
parent2aa46ee4ae252b9cd13e6c8e4ace8a68ee14398b (diff)
parent4ef246f804c6662dcb9773447db85feb51006621 (diff)
Merge pull request #39089 from mrushyendra/localVectorBug
Fix unsigned integer bug in LocalVector::erase
-rw-r--r--core/local_vector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/local_vector.h b/core/local_vector.h
index b09a28b25a..7f96b25f8b 100644
--- a/core/local_vector.h
+++ b/core/local_vector.h
@@ -75,7 +75,7 @@ public:
}
void erase(const T &p_val) {
- U idx = find(p_val);
+ int64_t idx = find(p_val);
if (idx >= 0) {
remove(idx);
}