mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	Silence borderline warning with -Werror=strict-overflow
Error: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Werror=strict-overflow]
This commit is contained in:
		| @@ -1652,7 +1652,7 @@ ImGuiWindow* ImGui::GetParentWindow() | ||||
| { | ||||
|     ImGuiState& g = *GImGui; | ||||
|     IM_ASSERT(g.CurrentWindowStack.Size >= 2); | ||||
|     return g.CurrentWindowStack[g.CurrentWindowStack.Size - 2]; | ||||
|     return g.CurrentWindowStack[(unsigned int)g.CurrentWindowStack.Size - 2]; | ||||
| } | ||||
|  | ||||
| void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window = NULL) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user