diff options
author | aspect <aspect+tclcore@abstracted-spleen.org> | 2017-03-27 13:02:22 (GMT) |
---|---|---|
committer | aspect <aspect+tclcore@abstracted-spleen.org> | 2017-03-27 13:02:22 (GMT) |
commit | e18d7f592196530ea7602ea21a0a5341f08f960c (patch) | |
tree | f220dd7bcc08724b00fb9400fcb1df73b3b50bdc /generic | |
parent | e30a832a0e2040dd682f2e77c6d26043e0829d80 (diff) | |
download | tcl-e18d7f592196530ea7602ea21a0a5341f08f960c.zip tcl-e18d7f592196530ea7602ea21a0a5341f08f960c.tar.gz tcl-e18d7f592196530ea7602ea21a0a5341f08f960c.tar.bz2 |
Correct this use of isWanted to ensure NO_IMPLEMENTATION methods are not listed (bug [900cb0284bc])
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclOOCall.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tclOOCall.c b/generic/tclOOCall.c index 8003345..c861eb9 100644 --- a/generic/tclOOCall.c +++ b/generic/tclOOCall.c @@ -618,6 +618,7 @@ AddClassMethodNames( if (isNew) { int isWanted = (!(flags & PUBLIC_METHOD) || (mPtr->flags & PUBLIC_METHOD)) ? IN_LIST : 0; + isWanted |= (mPtr->typePtr == NULL ? NO_IMPLEMENTATION : 0); Tcl_SetHashValue(hPtr, INT2PTR(isWanted)); } else if ((PTR2INT(Tcl_GetHashValue(hPtr)) & NO_IMPLEMENTATION) |