mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Merge topic 'cmStringAlgorithms_ulong'
935fbe0b04 cmStringAlgorithms: Add cmStrToLong and cmStrToULong
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3681
This commit is contained in:
@@ -2357,8 +2357,7 @@ bool HandleLockCommand(std::vector<std::string> const& args,
|
||||
return false;
|
||||
}
|
||||
long scanned;
|
||||
if (!cmSystemTools::StringToLong(args[i].c_str(), &scanned) ||
|
||||
scanned < 0) {
|
||||
if (!cmStrToLong(args[i], &scanned) || scanned < 0) {
|
||||
std::ostringstream e;
|
||||
e << "TIMEOUT value \"" << args[i] << "\" is not an unsigned integer.";
|
||||
status.GetMakefile().IssueMessage(MessageType::FATAL_ERROR, e.str());
|
||||
|
||||
Reference in New Issue
Block a user