common : fix incorrect uses of stoul (#20313)
This commit is contained in:
parent
0cd4f4720b
commit
ec947d2b16
3 changed files with 5 additions and 5 deletions
|
|
@ -790,7 +790,7 @@ public:
|
|||
} 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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue