1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: fix compilation warning on FreeBSD

This commit is contained in:
Sebastien Helleu
2012-12-19 09:37:26 +01:00
parent 3fcb00bfc5
commit 0f749dc65d
+2 -2
View File
@@ -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: