Fix issue with constant comparison raising warnings on MSVC for tautological comparison

This commit is contained in:
2026-10-03 22:36:24 +10:00
parent d85b66d1da
commit eb4e1c4d20
4 changed files with 28 additions and 24 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
// Generated by the DN single header generator 2026-09-29 22:28:12
// Generated by the DN single header generator 2026-10-03 22:35:58
// DN: Single header generator commented out => #if defined(_CLANGD)
// #define DN_WITH_TESTS 1
@@ -8647,9 +8647,9 @@ DN_API bool DN_RectContainsRect(DN_Rect a, DN_Rect b)
DN_API DN_Rect DN_RectExpand(DN_Rect a, DN_F32 amount)
{
DN_Rect result = a;
result.pos -= amount;
result.size += (amount * 2.f);
DN_Rect result = a;
result.pos -= amount;
result.size += (amount * 2.f);
return result;
}