From 2cb4fe74b15017acdf67c65e0c6b574f7f738eee Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Fri, 29 Apr 2016 18:38:49 +0100 Subject: [PATCH] Use original parseUInt function --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 0b9bc90..28b5ab5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include "common.h" #include "Stream.h" @@ -194,9 +194,9 @@ void check_solution(const unsigned int ntimes, std::vector& a, std::vector int parseUInt(const char *str, unsigned int *output) { - std::size_t next; - *output = std::stoul(str, &next); - return !next; + char *next; + *output = strtoul(str, &next, 10); + return !strlen(next); } void parseArguments(int argc, char *argv[])