mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 01:01:03 +00:00
Avoid compiler warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21278 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ef2f59a290
commit
2676653a26
1 changed files with 3 additions and 2 deletions
|
@ -948,8 +948,9 @@ cString_c(GSStr self, NSStringEncoding enc)
|
|||
* 8-bit character strings ... we must convert from internal format to
|
||||
* unicode and then to the external C string encoding.
|
||||
*/
|
||||
if (GSToUnicode(&r, &l, self->_contents.c, self->_count, intEnc,
|
||||
NSDefaultMallocZone(), GSUniTerminate|GSUniTemporary|GSUniStrict) == NO)
|
||||
if (GSToUnicode((unichar**)&r, &l, self->_contents.c, self->_count,
|
||||
intEnc, NSDefaultMallocZone(),
|
||||
GSUniTerminate|GSUniTemporary|GSUniStrict) == NO)
|
||||
{
|
||||
[NSException raise: NSCharacterConversionException
|
||||
format: @"Can't convert to Unicode string."];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue