Avoid compiler warning.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25289 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2007-06-23 08:52:39 +00:00
parent 6f71975c5f
commit c12455b7ea

View file

@ -1823,7 +1823,7 @@ getCStringE_c(GSStr self, char *buffer, unsigned int maxLength,
return YES;
}
// Fall through to perform conversion to unicode and back
if ([self class] == NSConstantStringClass)
if ([(id)self class] == NSConstantStringClass)
{
NSLog(@"Warning: non-ASCII character in string literal");
}