From 30cfd4dd41f0f3e7910f57b1a49699280463419b Mon Sep 17 00:00:00 2001 From: the_hunter Date: Tue, 25 Feb 2025 10:09:16 +0200 Subject: [PATCH] Fix assignment-in-condition warning --- revoice/src/utlbuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/revoice/src/utlbuffer.cpp b/revoice/src/utlbuffer.cpp index 59fca19..9bccbcf 100644 --- a/revoice/src/utlbuffer.cpp +++ b/revoice/src/utlbuffer.cpp @@ -205,7 +205,7 @@ int CUtlBuffer::VaScanf(char const* pFmt, va_list list) char c; char* pEnd; - while (c = *pFmt++) + while ((c = *pFmt++)) { // Stop if we hit the end of the buffer if (m_Get >= Size())