summaryrefslogtreecommitdiff
path: root/normal_distribution.cpp
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2023-05-17 01:56:15 +0800
committerKunoiSayami <[email protected]>2023-05-17 01:56:15 +0800
commitff0640807f810b5ac3d9f7a831b60e1266608a08 (patch)
treec02f21fd433bf54549a2997778b0793c5a59e1ef /normal_distribution.cpp
parentb6bcd9a2eb08796e44f317bfcda2a14b6bb311db (diff)
feat(exp): Add expt_0516
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'normal_distribution.cpp')
-rw-r--r--normal_distribution.cpp2
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;