mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
f042ef5fcf
commit
017c2515c7
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue