aboutsummaryrefslogtreecommitdiff
path: root/libXfont
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-06-19 15:36:23 +0200
committermarha <marha@users.sourceforge.net>2013-06-19 15:36:23 +0200
commit2aac4e532f0def350ef3faea22627f3033488187 (patch)
tree7462e4556b1f528831570fead316f2fd63ebf41a /libXfont
parent230fe896faed312ef22d915e871fb5aee3ecfad0 (diff)
downloadvcxsrv-2aac4e532f0def350ef3faea22627f3033488187.tar.gz
vcxsrv-2aac4e532f0def350ef3faea22627f3033488187.tar.bz2
vcxsrv-2aac4e532f0def350ef3faea22627f3033488187.zip
Solved type cast problem in debug
Diffstat (limited to 'libXfont')
-rw-r--r--libXfont/src/FreeType/ftfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libXfont/src/FreeType/ftfuncs.c b/libXfont/src/FreeType/ftfuncs.c
index f14ca6f84..95873fa07 100644
--- a/libXfont/src/FreeType/ftfuncs.c
+++ b/libXfont/src/FreeType/ftfuncs.c
@@ -1469,7 +1469,7 @@ FreeTypeRasteriseGlyph(unsigned idx, int flags, CharInfoPtr tgp,
current_raster[j]|=current_buffer[jj]>>mod_dx0;
j++; prev_jj++; jj++;
for( ; j<bpr ; j++,prev_jj++,jj++ ){
- current_raster[j]|=current_buffer[prev_jj]<<mod_dx1;
+ current_raster[j]|=(current_buffer[prev_jj]<<mod_dx1)&0xff;
if( bitmap->pitch <= jj ) break;
current_raster[j]|=current_buffer[jj]>>mod_dx0;
}