From bdfd22ad88c8c6013e840f332ba0b395c0f1e83c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 1 Nov 2015 21:31:10 -0500 Subject: [PATCH] TDB2: Converted from strtoul to std::stoul --- src/TDB2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TDB2.cpp b/src/TDB2.cpp index 7ebc5620f..c251cfbb3 100644 --- a/src/TDB2.cpp +++ b/src/TDB2.cpp @@ -959,7 +959,7 @@ void TDB2::show_diff ( const std::string& prior, const std::string& when) { - ISO8601d lastChange (strtol (when.c_str (), NULL, 10)); + ISO8601d lastChange (static_cast (std::stoul (when))); // Set the colors. Color color_red (context.color () ? context.config.get ("color.undo.before") : "");