From: gfx Date: Mon, 16 Nov 2009 08:30:00 +0000 (+0900) Subject: Fix BUILDARGS logic X-Git-Tag: 0.40_06~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=12872cc1793844cd99267d224a03a39f21e3a373;p=gitmo%2FMouse.git Fix BUILDARGS logic --- diff --git a/xs-src/Mouse.xs b/xs-src/Mouse.xs index 7c70a84..9345175 100644 --- a/xs-src/Mouse.xs +++ b/xs-src/Mouse.xs @@ -30,8 +30,6 @@ enum mouse_xc_ix_t{ MOUSE_XC_GEN, /* class generation */ MOUSE_XC_STASH, /* symbol table hash */ - MOUSE_XC_BUILDARGS, /* Custom BUILDARGS */ - MOUSE_XC_ATTRALL, /* all the attributes */ MOUSE_XC_BUILDALL, /* all the BUILD methods */ MOUSE_XC_DEMOLISHALL, /* all the DEMOLISH methods */ @@ -74,7 +72,7 @@ mouse_class_has_custom_buildargs(pTHX_ HV* const stash) { GV* const buildargs = gv_fetchmeth_autoload(stash, "BUILDARGS", sizeof("BUILDARGS")-1, 0); - return buildargs && CvXSUB(GvCV(buildargs)) == XS_Mouse__Object_BUILDARGS; + return buildargs && CvXSUB(GvCV(buildargs)) != XS_Mouse__Object_BUILDARGS; } static void