File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1617,7 +1617,7 @@ cdef class Gen(Gen_auto):
1617
1617
lx = lgefint(x) - 2 # number of words
1618
1618
size = lx * 4 * sizeof(long )
1619
1619
s = < char * > check_malloc(size+ 3 ) # 1 char for sign, 1 char for 0, 1 char for '\0'
1620
- sp = s + size + 3
1620
+ sp = s + size + 3 - 1 # last character
1621
1621
sp[0 ] = 0
1622
1622
xp = int_LSW(x)
1623
1623
for i from 0 <= i < lx:
@@ -1660,7 +1660,7 @@ cdef class Gen(Gen_auto):
1660
1660
lx = lgefint(x) - 2 # number of words
1661
1661
size = lx* 2 * sizeof(long )
1662
1662
s = < char * > check_malloc(size+ 4 ) # 1 char for sign, 2 chars for 0x, 1 char for '\0'
1663
- sp = s + size + 4
1663
+ sp = s + size + 4 - 1 # last character
1664
1664
sp[0 ] = 0
1665
1665
xp = int_LSW(x)
1666
1666
for i from 0 <= i < lx:
You can’t perform that action at this time.
0 commit comments