diff options
Diffstat (limited to 'shell/source/unix')
-rw-r--r-- | shell/source/unix/sysshell/recently_used_file_handler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/unix/sysshell/recently_used_file_handler.cxx b/shell/source/unix/sysshell/recently_used_file_handler.cxx index 81b96960fac5..3049bcf6587a 100644 --- a/shell/source/unix/sysshell/recently_used_file_handler.cxx +++ b/shell/source/unix/sysshell/recently_used_file_handler.cxx @@ -91,11 +91,11 @@ namespace /* private */ { void set_timestamp(const string_t& character) { - time_t t; + long t; if (sscanf(character.c_str(), "%ld", &t) != 1) timestamp_ = -1; else - timestamp_ = t; + timestamp_ = static_cast<time_t>(t); } void set_is_private(SAL_UNUSED_PARAMETER const string_t& /*character*/) |