Skip to content

Commit

Permalink
Merge pull request #41372 from akien-mga/fix-uint32_t-warning
Browse files Browse the repository at this point in the history
Fix warning using ERR_FAIL_INDEX on unsigned int
  • Loading branch information
akien-mga authored Aug 19, 2020
2 parents 5f63682 + 989a4de commit d3bd84d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/rid_owner.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class RID_Alloc : public RID_AllocBase {
}

_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) {
spin_lock.lock();
}
Expand Down

0 comments on commit d3bd84d

Please sign in to comment.