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") : "");