Skip to content

Commit 2767f50

Browse files
committed
Fix a segmentation fault with cleanup_var
1 parent 5c8d9e9 commit 2767f50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/symbolic/expression.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13531,7 +13531,7 @@ cpdef _repr_Expression(x):
1353113531
sage: SR._repr_element_(x+2)
1353213532
'x + 2'
1353313533
"""
13534-
return ccrepr((<Expression>x)._gobj)
13534+
return ccrepr((<Expression?>x)._gobj)
1353513535

1353613536

1353713537
cpdef _latex_Expression(x):
@@ -13545,7 +13545,7 @@ cpdef _latex_Expression(x):
1354513545
sage: latex(var('theta') + 2)
1354613546
\theta + 2
1354713547
"""
13548-
return char_to_str(GEx_to_str_latex(&(<Expression>x)._gobj))
13548+
return char_to_str(GEx_to_str_latex(&(<Expression?>x)._gobj))
1354913549

1355013550

1355113551
def solve_diophantine(f, *args, **kwds):

0 commit comments

Comments
 (0)