mirror of https://github.com/godotengine/godot
Fix warning using ERR_FAIL_INDEX on unsigned int
This method starting being used in 079ca220e1,
which now triggers this warning from GCC 10:
```
./core/error_macros.h:151:25: error: comparison of unsigned expression in '< 0' is always false [-Werror=type-limits]
```
This commit is contained in:
parent
5f6368278f
commit
989a4deb2f
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue