mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 10:11:15 +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
992115d6a5
commit
c765bfbf29
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>
|
2003-03-03 14:52 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
* Headers/gnustep/gui/GSTypesetter.h, Source/GSTypesetter.m: Removed
|
* Headers/gnustep/gui/GSTypesetter.h, Source/GSTypesetter.m: Removed
|
||||||
|
|
|
@ -1133,7 +1133,7 @@ NS_DURING
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
unsigned char chi;
|
unsigned int chi;
|
||||||
unichar ch;
|
unichar ch;
|
||||||
chi = [curLayoutManager characterRangeForGlyphRange: NSMakeRange(curGlyph - 1, 1)
|
chi = [curLayoutManager characterRangeForGlyphRange: NSMakeRange(curGlyph - 1, 1)
|
||||||
actualGlyphRange: NULL].location;
|
actualGlyphRange: NULL].location;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue