diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-12-19 09:37:26 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-12-19 09:37:26 +0100 |
commit | 0f749dc65de42671b6a980fdfd9312cb9bee772e (patch) | |
tree | e452ab4283662c2a6c51ff6cec3c9293af1dfa9f /src/core | |
parent | 3fcb00bfc54465f4c55aea12c2a1f0c1623ee343 (diff) | |
download | weechat-0f749dc65de42671b6a980fdfd9312cb9bee772e.zip |
core: fix compilation warning on FreeBSD
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/wee-eval.c b/src/core/wee-eval.c index ffd5b296c..8f0a601be 100644 --- a/src/core/wee-eval.c +++ b/src/core/wee-eval.c @@ -136,7 +136,7 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path) break; case WEECHAT_HDATA_TIME: snprintf (str_value, sizeof (str_value), - "%ld", hdata_time (hdata, pointer, var_name)); + "%ld", (long)hdata_time (hdata, pointer, var_name)); value = strdup (str_value); break; case WEECHAT_HDATA_HASHTABLE: @@ -169,7 +169,7 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path) break; case HASHTABLE_TIME: snprintf (str_value, sizeof (str_value), - "%ld", *((time_t *)ptr_value)); + "%ld", (long)(*((time_t *)ptr_value))); value = strdup (str_value); break; case HASHTABLE_NUM_TYPES: |