);
}
if (split_arg.size() == 1) {
- std::fill(params.fit_params_target.begin(), params.fit_params_target.end(), std::stoul(split_arg[0]) * 1024*1024);
+ std::fill(params.fit_params_target.begin(), params.fit_params_target.end(), std::stoull(split_arg[0]) * 1024*1024);
return;
}
for (size_t i = 0; i < split_arg.size(); i++) {
- params.fit_params_target[i] = std::stoul(split_arg[i]) * 1024*1024;
+ params.fit_params_target[i] = std::stoull(split_arg[i]) * 1024*1024;
}
}
).set_env("LLAMA_ARG_FIT_TARGET"));
} else if (target.is_array()) {
size_t sel_index;
try {
- sel_index = std::stoul(sel);
+ sel_index = std::stoull(sel);
} catch (const std::invalid_argument & e) {
sel_index = target.size();
}
throw std::runtime_error(std::string("expecting an int at ") + pos);
}
const char * int_end = parse_int(pos);
- uint64_t min_times = std::stoul(std::string(pos, int_end - pos));
+ uint64_t min_times = std::stoull(std::string(pos, int_end - pos));
pos = parse_space(int_end, is_nested);
uint64_t max_times = UINT64_MAX; // default: no max limit
if (is_digit_char(*pos)) {
const char * int_end = parse_int(pos);
- max_times = std::stoul(std::string(pos, int_end - pos));
+ max_times = std::stoull(std::string(pos, int_end - pos));
pos = parse_space(int_end, is_nested);
}