ref: dfb475ab7a9e038875c6e11a7e3ee0acce40ef93
parent: 8b90cf0b4287fb8b9554b50e7a504e49cc014da5
author: Werner Lemberg <[email protected]>
date: Mon Nov 14 15:29:13 EST 2011
Fix compiler warning.
--- a/src/base/ftbitmap.c
+++ b/src/base/ftbitmap.c
@@ -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 &&