switch (opt->type) {
case OPT_INT: {
std::string err;
- int f = strict_strtol(val, 10, &err);
+ int f = strict_sistrtoll(val, &err);
if (!err.empty())
return -EINVAL;
*(int*)opt->conf_ptr(this) = f;
}
case OPT_LONGLONG: {
std::string err;
- long long f = strict_strtoll(val, 10, &err);
+ long long f = strict_sistrtoll(val, &err);
if (!err.empty())
return -EINVAL;
*(long long*)opt->conf_ptr(this) = f;
return 0;
case OPT_U32: {
std::string err;
- int f = strict_strtol(val, 10, &err);
+ int f = strict_sistrtoll(val, &err);
if (!err.empty())
return -EINVAL;
*(uint32_t*)opt->conf_ptr(this) = f;
}
case OPT_U64: {
std::string err;
- long long f = strict_strtoll(val, 10, &err);
+ long long f = strict_sistrtoll(val, &err);
if (!err.empty())
return -EINVAL;
*(uint64_t*)opt->conf_ptr(this) = f;