itk-wasm icon indicating copy to clipboard operation
itk-wasm copied to clipboard

Investigate changing std::atol to std::strtoull

Open thewtex opened this issue 3 years ago • 1 comments

xref #512

thewtex avatar Mar 08 '22 23:03 thewtex

Typo: std::strtoull! https://www.cplusplus.com/reference/cstdlib/strtoull/

Another option could be istringstream, of course:

std::string pointsString;
size_t address;
// Assuming that the address is specified by this specific substring. 
std::istringstream(pointsString.substr(35)) >> address;

Of course, it might be worth for this project to add an internal helper function that retrieves a pointer value from a string, as it occurs on various places.

N-Dekker avatar Mar 09 '22 10:03 N-Dekker

:tada: This issue has been resolved in version 1.0.0-b.52 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Dec 20 '22 04:12 github-actions[bot]