Commit fee8f400 authored by Mukund Sivaraman's avatar Mukund Sivaraman

Avoid overflow in expression

parent ad331d56
......@@ -323,12 +323,10 @@ gimp_display_shell_format_title (GimpDisplayShell *shell,
break;
case 'M': /* image size in megapixels */
{
i += print (title, title_len, i, "%.1f",
gimp_image_get_width (image) *
gimp_image_get_height (image) /
1000000.0f);
}
i += print (title, title_len, i, "%.1f",
(double) gimp_image_get_width (image) *
gimp_image_get_height (image) /
1000000.0);
break;
case 'l': /* number of layers */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment