Skip to content

Commit 001fdfd

Browse files
committed
sanity check for shift
1 parent a60d8cc commit 001fdfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/rings/polynomial/integer_valued_polynomials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def shift(self, j=1):
227227
B[3] + B[4]
228228
"""
229229
A = self.parent()
230-
return A._from_dict({i + j: c for i, c in self})
230+
return A._from_dict({A._indices(i + j): c for i, c in self})
231231

232232
def sum_of_coefficients(self):
233233
"""

0 commit comments

Comments
 (0)