use int macro
This commit is contained in:
parent
3674637d37
commit
d2f0de7a36
|
@ -293,7 +293,7 @@ ACTOR Future<bool> tenantDeleteIdCommand(Reference<IDatabase> db, std::vector<St
|
|||
fmt::print(stderr, "ERROR: delete by ID should only be run on a management cluster.\n");
|
||||
return false;
|
||||
}
|
||||
if (sscanf(tokens[2].toString().c_str(), "%ld%n", &tenantId, &n) != 1 || n != tokens[2].size() ||
|
||||
if (sscanf(tokens[2].toString().c_str(), "%" PRId64 "%n", &tenantId, &n) != 1 || n != tokens[2].size() ||
|
||||
tenantId < 0) {
|
||||
fmt::print(stderr, "ERROR: invalid ID `{}'\n", tokens[2].toString().c_str());
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue