Fix compiler warning.

This commit is contained in:
Werner Lemberg 2011-11-14 20:29:13 +01:00
parent 8b90cf0b42
commit dfb475ab7a
1 changed files with 2 additions and 2 deletions

View File

@ -417,8 +417,8 @@
target->pitch = source->width + pad;
if ( target->pitch > 0 &&
target->rows > FT_ULONG_MAX / target->pitch )
if ( target->pitch > 0 &&
(FT_ULong)target->rows > FT_ULONG_MAX / target->pitch )
return FT_Err_Invalid_Argument;
if ( target->rows * target->pitch > old_size &&