mirror of
https://github.com/php/php-src.git
synced 2025-08-17 14:38:49 +02:00
Be explicit here and cast it
This commit is contained in:
parent
55d9b2ad9c
commit
a9fe559f60
1 changed files with 4 additions and 4 deletions
|
@ -3534,8 +3534,8 @@ static void _php_image_convert(INTERNAL_FUNCTION_PARAMETERS, int image_type )
|
||||||
else {
|
else {
|
||||||
y_ratio = x_ratio;
|
y_ratio = x_ratio;
|
||||||
}
|
}
|
||||||
dest_width = org_width / x_ratio;
|
dest_width = (int)(org_width / x_ratio);
|
||||||
dest_height = org_height / y_ratio;
|
dest_height = (int)(org_height / y_ratio);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
x_ratio = (float) dest_width / (float) org_width;
|
x_ratio = (float) dest_width / (float) org_width;
|
||||||
|
@ -3547,8 +3547,8 @@ static void _php_image_convert(INTERNAL_FUNCTION_PARAMETERS, int image_type )
|
||||||
else {
|
else {
|
||||||
y_ratio = x_ratio;
|
y_ratio = x_ratio;
|
||||||
}
|
}
|
||||||
dest_width = org_width * x_ratio;
|
dest_width = (int)(org_width * x_ratio);
|
||||||
dest_height = org_height * y_ratio;
|
dest_height = (int)(org_height * y_ratio);
|
||||||
}
|
}
|
||||||
|
|
||||||
im_tmp = gdImageCreate (dest_width, dest_height);
|
im_tmp = gdImageCreate (dest_width, dest_height);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue