mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 13:53:37 +00:00
Correct is_space fix for Windows compatibility
Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
committed by
Konstantin Pastbin
parent
826b56cabc
commit
55dc1e17e6
@@ -173,7 +173,7 @@ bool ParseMaxspeedTag(std::string const & maxspeedValue, routing::SpeedInUnits &
|
||||
speedStr += maxspeedValue[i];
|
||||
}
|
||||
|
||||
while (i < maxspeedValue.size() && isspace(maxspeedValue[i]))
|
||||
while (i < maxspeedValue.size() && strings::IsASCIISpace(maxspeedValue[i]))
|
||||
++i;
|
||||
|
||||
if (maxspeedValue.size() == i || maxspeedValue.substr(i).starts_with("kmh"))
|
||||
|
||||
Reference in New Issue
Block a user