You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Various fixes detected using PVS-Studio static analyzer.
- Add FIXME tags comments to some unfixed potential bugs - Remove some checks (always false: unsigned never < 0) - Fix some if statements based on reviews. - Bunch of missing `else` statements
This commit is contained in:
committed by
REBELLIOUSX\Rebel_X
parent
0f8c6dd382
commit
f50488a361
@@ -504,7 +504,7 @@ const void *PoolAllocator::get(ID p_mem) const {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (e->pos<0 || (int)e->pos>=pool_size) {
|
||||
if ((int)e->pos>=pool_size) {
|
||||
|
||||
mt_unlock();
|
||||
ERR_PRINT("e->pos<0 || e->pos>=pool_size");
|
||||
@@ -546,7 +546,7 @@ void *PoolAllocator::get(ID p_mem) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (e->pos<0 || (int)e->pos>=pool_size) {
|
||||
if ((int)e->pos>=pool_size) {
|
||||
|
||||
mt_unlock();
|
||||
ERR_PRINT("e->pos<0 || e->pos>=pool_size");
|
||||
|
||||
Reference in New Issue
Block a user