Author: sagamusix
Date: Wed May 8 19:55:35 2024
New Revision: 20737
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20737
Log:
[Fix] Previous commit included an earlier version of ClassifyName, that didn't check for strict ASCII strings as the return value implies.
Modified:
trunk/OpenMPT/soundlib/MODTools.cpp
Modified: trunk/OpenMPT/soundlib/MODTools.cpp
==============================================================================
--- trunk/OpenMPT/soundlib/MODTools.cpp Wed May 8 19:53:49 2024 (r20736)
+++ trunk/OpenMPT/soundlib/MODTools.cpp Wed May 8 19:55:35 2024 (r20737)
@@ -331,9 +331,9 @@
NameClassification ClassifyName(const mpt::span<const char> name) noexcept
{
bool foundNull = false, foundNormal = false;
- for(auto c : name)
+ for(int8 c : name)
{
- if(c > 0 && c < ' ')
+ if(c != 0 && c < ' ')
return NameClassification::Invalid;
if(c == 0)
foundNull = true;
|