fix for incorrect types comparison

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34591 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2012-01-19 10:12:03 +00:00
parent 22e660c5b5
commit 9850140128
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-01-10 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSFFIInvocation.m: Fix selector types comparison to use the
correct function for checking equivalent types.
2012-01-10 Richard Frith-Macdonald <rfm@gnu.org>
* config/pathtls.m4:

View file

@ -584,7 +584,7 @@ GSFFIInvocationCallback(ffi_cif *cif, void *retp, void **args, void *user)
const char *receiverTypes = [sig methodType];
const char *runtimeTypes = GSTypesFromSelector(selector);
if (runtimeTypes == 0 || strcmp(receiverTypes, runtimeTypes) != 0)
if (NO == GSSelectorTypesMatch(receiverTypes, runtimeTypes))
{
const char *runtimeName = sel_getName(selector);