Pārlūkot izejas kodu

Merge pull request #39089 from mrushyendra/localVectorBug

Fix unsigned integer bug in LocalVector::erase
Rémi Verschelde 5 gadi atpakaļ
vecāks
revīzija
52814d111c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      core/local_vector.h

+ 1 - 1
core/local_vector.h

@@ -75,7 +75,7 @@ public:
 	}
 	}
 
 
 	void erase(const T &p_val) {
 	void erase(const T &p_val) {
-		U idx = find(p_val);
+		int64_t idx = find(p_val);
 		if (idx >= 0) {
 		if (idx >= 0) {
 			remove(idx);
 			remove(idx);
 		}
 		}