diff options
Diffstat (limited to 'normal_distribution.cpp')
| -rw-r--r-- | normal_distribution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/normal_distribution.cpp b/normal_distribution.cpp index 211721a..55ffe33 100644 --- a/normal_distribution.cpp +++ b/normal_distribution.cpp @@ -69,7 +69,7 @@ int main(int argc, char const *argv[]) { length = 1048576; } else { try { - length = std::stol(argv[1]); + length = std::strtol(argv[1], nullptr, 10); } catch (...) { fprintf(stderr, "Wrong arguments\n"); return 1; |
