[window-autoclear.c] don't use g_str_hash on a double

use g_double_hash which is present since glib-2.22 now that minimum
glib is 2.56
This commit is contained in:
Christopher Lam 2020-10-11 09:29:34 +08:00
parent 44486a72a3
commit cca3be7c81

View File

@ -107,7 +107,7 @@ ght_gnc_numeric_hash(gconstpointer v1)
{
gnc_numeric n1 = *(gnc_numeric *)v1;
gdouble d1 = gnc_numeric_to_double(n1);
return g_str_hash(&d1);
return g_double_hash (&d1);
}
typedef struct _sack_foreach_data_t