Skip to content

CLI: use stoul, not stoi to parse integers

Simon Spannagel requested to merge fix_stoul_parsing into master

With std::stoi we parse input as signed integers but then try to use them as unsigned. Not a problem for small numbers - but MSB of full-length registers cannot be configured due to sign bit.

@afiergol I presume this does not break anything for you? I guess all your register values are unsigned values...

Merge request reports