diff options
-rw-r--r-- | history.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/history.cpp b/history.cpp index 57689ad4..2c4fcb08 100644 --- a/history.cpp +++ b/history.cpp @@ -286,7 +286,7 @@ static void append_yaml_to_buffer(const wcstring &wcmd, time_t timestamp, const buffer->append("- cmd: ", cmd.c_str(), "\n"); char timestamp_str[96]; - snprintf(timestamp_str, sizeof timestamp_str, "%ld", timestamp); + snprintf(timestamp_str, sizeof timestamp_str, "%ld", (long) timestamp); buffer->append(" when: ", timestamp_str, "\n"); if (! required_paths.empty()) |