Fix CID 1420437 (OVERFLOW_BEFORE_WIDEN)
authorRicardo Mones <ricardo@mones.org>
Mon, 30 Oct 2017 10:00:17 +0000 (11:00 +0100)
committerRicardo Mones <ricardo@mones.org>
Mon, 30 Oct 2017 10:00:17 +0000 (11:00 +0100)
src/compose.c

index bfa2ac8711f34cecfe22339613ce1765cf9cf2de..e60d178f89b16cc59775b9f4b1b8f8082fe98973 100644 (file)
@@ -3678,7 +3678,7 @@ static ComposeInsertResult compose_insert_file(Compose *compose, const gchar *fi
 
                /* ask user for confirmation if the file is large */
                if (prefs_common.warn_large_insert_size < 0 ||
 
                /* ask user for confirmation if the file is large */
                if (prefs_common.warn_large_insert_size < 0 ||
-                   size > (prefs_common.warn_large_insert_size * 1024)) {
+                   size > ((goffset) prefs_common.warn_large_insert_size * 1024)) {
                        AlertValue aval;
                        gchar *msg;
 
                        AlertValue aval;
                        gchar *msg;