Change type of a variable holding a character index to int (was char, would overflow and break things.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16117 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-03-03 15:20:02 +00:00
parent f042ef5fcf
commit 017c2515c7
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2003-03-03 16:17 Alexander Malmberg <alexander@malmberg.org>
* Source/GSHorizontalTypesetter.m (-layoutGlyphsInLayoutManager:
inTextContainer:startingAtGlyphIndex:previousLineFragmentRect:
nextGlyphIndex:numberOfLineFragments:): Change type of a variable
holding a character index to int (was char, would overflow and
break things).
2003-03-03 14:52 Alexander Malmberg <alexander@malmberg.org>
* Headers/gnustep/gui/GSTypesetter.h, Source/GSTypesetter.m: Removed

View file

@ -1133,7 +1133,7 @@ NS_DURING
}
else
{
unsigned char chi;
unsigned int chi;
unichar ch;
chi = [curLayoutManager characterRangeForGlyphRange: NSMakeRange(curGlyph - 1, 1)
actualGlyphRange: NULL].location;