use int macro

This commit is contained in:
Jon Fu 2022-11-30 14:31:01 -08:00
parent 3674637d37
commit d2f0de7a36
1 changed files with 1 additions and 1 deletions

View File

@ -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;