Skip to content

Commit 9552d28

Browse files
authored
php int error fixed
1 parent ccd5c0d commit 9552d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

class-php-ico.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function _add_image_data( $im ) {
187187
$color = imagecolorat( $im, $x, $y );
188188

189189
$alpha = ( $color & 0x7F000000 ) >> 24;
190-
$alpha = ( 1 - ( $alpha / 127 ) ) * 255;
190+
$alpha = round( ( 1 - ( $alpha / 127 ) ) * 255);
191191

192192
$color &= 0xFFFFFF;
193193
$color |= 0xFF000000 & ( $alpha << 24 );

0 commit comments

Comments
 (0)