Skip to content

Commit 7fb7f10

Browse files
committed
Fix Unicode-to-C coercion errors
1 parent 1668a12 commit 7fb7f10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cypari2/gen.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,9 +1789,9 @@ cdef class Gen(Gen_base):
17891789
while sp[0] == c'0':
17901790
sp = sp + 1
17911791
sp -= 1
1792-
sp[0] = 'x'
1792+
sp[0] = c'x'
17931793
sp -= 1
1794-
sp[0] = '0'
1794+
sp[0] = c'0'
17951795
if signe(x) < 0:
17961796
sp -= 1
17971797
sp[0] = c'-'

0 commit comments

Comments
 (0)