From 8d8848e882aaf8ed92a9e919505f478ff1f5ce05 Mon Sep 17 00:00:00 2001 From: San Jacobs Date: Sun, 7 Aug 2022 08:13:49 +0200 Subject: Fixed windows-only out_of_range crash --- src/time.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/time.cpp') diff --git a/src/time.cpp b/src/time.cpp index 6d1401d..f54237f 100755 --- a/src/time.cpp +++ b/src/time.cpp @@ -10,8 +10,8 @@ // --- OPERATOR OVERLOADS --- // -long sortable_time(const moment input_moment) { - return stol(std::to_string(input_moment.year)+ +long long sortable_time(const moment input_moment) { + return stoll(std::to_string(input_moment.year)+ padint(input_moment.month,2)+ padint(input_moment.day,2)+ padint(input_moment.hours,2)+ -- cgit v1.2.1