diff options
Diffstat (limited to 'src/core/wee-hashtable.c')
-rw-r--r-- | src/core/wee-hashtable.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/wee-hashtable.c b/src/core/wee-hashtable.c index 508c30892..7e1572966 100644 --- a/src/core/wee-hashtable.c +++ b/src/core/wee-hashtable.c @@ -1,7 +1,7 @@ /* * wee-hashtable.c - implementation of hashtable * - * Copyright (C) 2010-2017 Sébastien Helleu <flashcode@flashtux.org> + * Copyright (C) 2010-2018 Sébastien Helleu <flashcode@flashtux.org> * * This file is part of WeeChat, the extensible chat client. * @@ -554,7 +554,7 @@ hashtable_to_string (enum t_hashtable_type type, const void *value) break; case HASHTABLE_TIME: snprintf (str_value, sizeof (str_value), - "%ld", (long)(*((time_t *)value))); + "%lld", (long long)(*((time_t *)value))); return str_value; break; case HASHTABLE_NUM_TYPES: @@ -1314,7 +1314,7 @@ hashtable_print_log (struct t_hashtable *hashtable, const char *name) log_printf (" key (buffer) . . . : 0x%lx", ptr_item->key); break; case HASHTABLE_TIME: - log_printf (" key (time) . . . . : %ld", *((time_t *)ptr_item->key)); + log_printf (" key (time) . . . . : %lld", (long long)(*((time_t *)ptr_item->key))); break; case HASHTABLE_NUM_TYPES: break; |