mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fix use of unitialized variables
The second in my quest to make Godot 3.x compile with -Werror on GCC7
This commit is contained in:
@@ -60,9 +60,13 @@ class VMap {
|
||||
|
||||
int low = 0;
|
||||
int high = _data.size() - 1;
|
||||
int middle;
|
||||
const _Pair *a = &_data[0];
|
||||
int middle = 0;
|
||||
|
||||
#if DEBUG_ENABLED
|
||||
if (low > high)
|
||||
ERR_PRINT("low > high, this may be a bug");
|
||||
#endif
|
||||
while (low <= high) {
|
||||
middle = (low + high) / 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user