Skip to content

Commit

Permalink
C, C++, fix unary op
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobandersen committed Mar 30, 2021
1 parent 5d127ab commit 6fd299d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sphinx/domains/c.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def describe_signature(self, signode: TextElement, mode: str,
signode += addnodes.desc_sig_space()
else:
signode += addnodes.desc_sig_operator(self.op, self.op)
self.expr.describe_signature(signode, mode, env, symbol)
self.expr.describe_signature(signode, mode, env, symbol)


class ASTSizeofType(ASTExpression):
Expand Down
2 changes: 1 addition & 1 deletion sphinx/domains/cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ def describe_signature(self, signode: TextElement, mode: str,
signode += addnodes.desc_sig_space()
else:
signode += addnodes.desc_sig_operator(self.op, self.op)
self.expr.describe_signature(signode, mode, env, symbol)
self.expr.describe_signature(signode, mode, env, symbol)


class ASTSizeofParamPack(ASTExpression):
Expand Down

0 comments on commit 6fd299d

Please sign in to comment.