From 8ebe4b5e57de140599a053083f27052f663c68f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Wahlstrand?= Date: Wed, 31 Jan 2024 23:52:43 +0100 Subject: [PATCH] Fix compare that is always true --- glm/gtx/string_cast.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/gtx/string_cast.inl b/glm/gtx/string_cast.inl index c51b7f41..875f2be3 100644 --- a/glm/gtx/string_cast.inl +++ b/glm/gtx/string_cast.inl @@ -22,7 +22,7 @@ namespace detail std::size_t const STRING_BUFFER(4096); assert(message != NULL); - assert(strlen(message) >= 0 && strlen(message) < STRING_BUFFER); + assert(strlen(message) < STRING_BUFFER); char buffer[STRING_BUFFER]; va_list list;