Werner Lemberg pushed to branch master at FreeType / FreeType
Commits:
-
6e253b26
by Werner Lemberg at 2021-05-29T11:07:10+02:00
2 changed files:
Changes:
... | ... | @@ -758,7 +758,7 @@ |
758 | 758 |
error = FT_Err_Ok;
|
759 | 759 |
|
760 | 760 |
Exit:
|
761 |
- *data_written = FT_ULong( d - data );
|
|
761 |
+ *data_written = (FT_ULong)( d - data );
|
|
762 | 762 |
return error;
|
763 | 763 |
}
|
764 | 764 |
|
... | ... | @@ -3308,9 +3308,9 @@ |
3308 | 3308 |
dist.distance = square_root( dist.distance );
|
3309 | 3309 |
|
3310 | 3310 |
if ( internal_params.flip_y )
|
3311 |
- index = FT_UInt( y * width + x );
|
|
3311 |
+ index = (FT_UInt)( y * width + x );
|
|
3312 | 3312 |
else
|
3313 |
- index = FT_UInt( ( rows - y - 1 ) * width + x );
|
|
3313 |
+ index = (FT_UInt)( ( rows - y - 1 ) * width + x );
|
|
3314 | 3314 |
|
3315 | 3315 |
/* check whether the pixel is set or not */
|
3316 | 3316 |
if ( dists[index].sign == 0 )
|