app: fixes int overflow warning.

This fixes the following warning when compiling with Mingw:
> warning: integer overflow in expression of type 'long int' results in '-694967296' [-Woverflow]
This commit is contained in:
Jehan 2019-12-25 22:01:33 +01:00
parent 4fa7d078d0
commit bb7f229b97
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ gimp_update_check (GimpCoreConfig *config)
current_timestamp = g_get_real_time();
/* Do not check more than once a week. */
if (current_timestamp < prev_update_timestamp + G_USEC_PER_SEC * 3600L * 24L * 7L)
if (current_timestamp - prev_update_timestamp < (gint64) G_USEC_PER_SEC * 3600L * 24L * 7L)
return FALSE;
gimp_versions = g_file_new_for_uri ("https://testing.gimp.org/gimp_versions.json");