mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Refactor is_positive_num() to use C-strings
This makes the future move to C easier, as well as just shows that it's plain unnecessary to use an std::string here.
This commit is contained in:
@@ -162,7 +162,7 @@ std::string find_tag(const std::string& buf, const std::string& start, const std
|
||||
size_t real_start = start_pos + 2 + ((int) hex);
|
||||
std::string number(value.substr(real_start, end - real_start));
|
||||
|
||||
if (!is_positive_num(number, hex))
|
||||
if (!is_positive_num(number.c_str(), hex))
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user