Clarify use of overload CUtlSymbolTable::Find (#352)
Some checks failed
Compilation / ${{ matrix.os }} - ${{ matrix.cc }} (clang, clang++, ubuntu-22.04) (push) Has been cancelled
Compilation / ${{ matrix.os }} - ${{ matrix.cc }} (msvc, windows-2022) (push) Has been cancelled

allows compiling C++20 on Windows
This commit is contained in:
Kit o' Rifty 2025-11-03 11:17:37 -08:00 committed by GitHub
parent 7c7411cc10
commit 257c8981a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,7 +105,7 @@ public:
inline bool HasElement( const char* pStr ) const
{
return Find( pStr ) != UTL_INVAL_SYMBOL;
return (UtlSymId_t)(Find( pStr )) != UTL_INVAL_SYMBOL;
}
// Remove all symbols in the table.