Skip to content

Commit b632c22

Browse files
committed
Fix bug in DeeObject_TGenericBoundAttrStringHash()
1 parent 0ad21c8 commit b632c22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/deemon/runtime/attribute-access-generic.c.inl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "attribute.c"
2222
//#define DEFINE_DeeObject_TGenericGetAttrStringHash
2323
//#define DEFINE_DeeObject_TGenericGetAttrStringLenHash
24-
//#define DEFINE_DeeObject_TGenericBoundAttrStringHash
24+
#define DEFINE_DeeObject_TGenericBoundAttrStringHash
2525
//#define DEFINE_DeeObject_TGenericBoundAttrStringLenHash
2626
//#define DEFINE_DeeObject_TGenericCallAttrStringHash
2727
//#define DEFINE_DeeObject_TGenericCallAttrStringLenHash
@@ -44,7 +44,7 @@
4444
//#define DEFINE_DeeObject_TGenericFindPrivateAttrInfoStringHash
4545
//#define DEFINE_DeeObject_TGenericFindPrivateAttrInfoStringLenHash
4646
//#define DEFINE_DeeObject_TGenericFindAttr
47-
#define DEFINE_DeeObject_TGenericIterAttr
47+
//#define DEFINE_DeeObject_TGenericIterAttr
4848
#endif /* __INTELLISENSE__ */
4949

5050
#include <deemon/api.h>
@@ -105,14 +105,14 @@
105105
#elif defined(DEFINE_DeeObject_TGenericBoundAttrStringHash)
106106
#define LOCAL_DeeObject_TGenericAccessAttr DeeObject_TGenericBoundAttrStringHash
107107
#define LOCAL_DeeType_AccessCachedAttr(tp_self, self) DeeType_BoundCachedAttrStringHash(tp_self, self, attr, hash)
108-
#define LOCAL_DeeType_AccessMethodAttr(tp_invoker, tp_self, self) (DeeType_HasMethodAttrStringHash(tp_invoker, tp_self, attr, hash) ? 1 : -2)
108+
#define LOCAL_DeeType_AccessMethodAttr(tp_invoker, tp_self, self) DeeType_BoundMethodAttrStringHash(tp_invoker, tp_self, self, attr, hash)
109109
#define LOCAL_DeeType_AccessGetSetAttr(tp_invoker, tp_self, self) DeeType_BoundGetSetAttrStringHash(tp_invoker, tp_self, self, attr, hash)
110110
#define LOCAL_DeeType_AccessMemberAttr(tp_invoker, tp_self, self) DeeType_BoundMemberAttrStringHash(tp_invoker, tp_self, self, attr, hash)
111111
#define LOCAL_IS_BOUND
112112
#elif defined(DEFINE_DeeObject_TGenericBoundAttrStringLenHash)
113113
#define LOCAL_DeeObject_TGenericAccessAttr DeeObject_TGenericBoundAttrStringLenHash
114114
#define LOCAL_DeeType_AccessCachedAttr(tp_self, self) DeeType_BoundCachedAttrStringLenHash(tp_self, self, attr, attrlen, hash)
115-
#define LOCAL_DeeType_AccessMethodAttr(tp_invoker, tp_self, self) (DeeType_HasMethodAttrStringLenHash(tp_invoker, tp_self, attr, attrlen, hash) ? 1 : -2)
115+
#define LOCAL_DeeType_AccessMethodAttr(tp_invoker, tp_self, self) DeeType_BoundMethodAttrStringLenHash(tp_invoker, tp_self, self, attr, attrlen, hash)
116116
#define LOCAL_DeeType_AccessGetSetAttr(tp_invoker, tp_self, self) DeeType_BoundGetSetAttrStringLenHash(tp_invoker, tp_self, self, attr, attrlen, hash)
117117
#define LOCAL_DeeType_AccessMemberAttr(tp_invoker, tp_self, self) DeeType_BoundMemberAttrStringLenHash(tp_invoker, tp_self, self, attr, attrlen, hash)
118118
#define LOCAL_IS_BOUND

0 commit comments

Comments
 (0)