Merge pull request #41372 from akien-mga/fix-uint32_t-warning

Fix warning using ERR_FAIL_INDEX on unsigned int
This commit is contained in:
Rémi Verschelde 2020-08-19 17:27:32 +02:00 committed by GitHub
commit d3bd84d705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -236,7 +236,7 @@ public:
} }
_FORCE_INLINE_ T *get_ptr_by_index(uint32_t p_index) { _FORCE_INLINE_ T *get_ptr_by_index(uint32_t p_index) {
ERR_FAIL_INDEX_V(p_index, alloc_count, nullptr); ERR_FAIL_UNSIGNED_INDEX_V(p_index, alloc_count, nullptr);
if (THREAD_SAFE) { if (THREAD_SAFE) {
spin_lock.lock(); spin_lock.lock();
} }