Skip to content

Commit

Permalink
Fix bug with generic operator invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
GrieferAtWork committed May 18, 2024
1 parent e501c4a commit e40fcd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deemon/objects/type-operators.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ DEFINE_OPERATOR_INVOKE(operator_getbuf, NULL, &do_DeeType_InheritBuffer) {
/* >> operator str(): string;
* >> operator str(fp: File); */
DEFINE_OPERATOR_INVOKE(operator_str, &instance_str, &do_DeeType_InheritStr) {
DeeObject *fp;
DeeObject *fp = NULL;
(void)p_self;
(void)opname;
if (DeeArg_Unpack(argc, argv, "|o:" OPNAME("str"), &fp))
Expand All @@ -372,7 +372,7 @@ DEFINE_OPERATOR_INVOKE(operator_str, &instance_str, &do_DeeType_InheritStr) {
/* >> operator repr(): string;
* >> operator repr(fp: File); */
DEFINE_OPERATOR_INVOKE(operator_repr, &instance_repr, &do_DeeType_InheritRepr) {
DeeObject *fp;
DeeObject *fp = NULL;
(void)p_self;
(void)opname;
if (DeeArg_Unpack(argc, argv, "|o:" OPNAME("repr"), &fp))
Expand Down

0 comments on commit e40fcd5

Please sign in to comment.