Don't pretend that NSGlyph * and unichar * are the same.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17078 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-06-30 17:14:31 +00:00
parent c4122018aa
commit e04b025363
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2003-06-30 18:11 Alexander Malmberg <alexander@malmberg.org>
* Source/xlib/XGFont.m (-xCharStructForGlyph:): Don't try to treat
NSGlyph pointers as unichar pointers; break on non-little-endian
systems.
2003-06-29 17:34 Alexander Malmberg <alexander@malmberg.org>
* Source/art/ftfont.m (-initWithFontName:matrix:screenFont:): Round

View file

@ -366,8 +366,9 @@ static BOOL XGInitAtoms(Display *dpy)
unsigned int size = 1;
unsigned char c = 0;
unsigned char *dst = &c;
unichar ch = glyph;
GSFromUnicode(&dst, &size, (unichar*)&glyph, 1,
GSFromUnicode(&dst, &size, &ch, 1,
mostCompatibleStringEncoding, 0, 0);
index = c;
}