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 bfa2ac8..e60d178 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 ||
-                   size > (prefs_common.warn_large_insert_size * 1024)) {
+                   size > ((goffset) prefs_common.warn_large_insert_size * 1024)) {
                        AlertValue aval;
                        gchar *msg;