Skip to content

Commit e302a5e

Browse files
committed
Trac #21318: use "correct" 1
1 parent 81c0df4 commit e302a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/combinat/recognizable_series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ def one_hadamard(self):
16291629
from sage.modules.free_module_element import vector
16301630
from sage.rings.integer_ring import ZZ
16311631

1632-
one = ZZ(1)
1632+
one = self.coefficient_ring()(1)
16331633
return self(dict((a, Matrix([[one]])) for a in self.alphabet()),
16341634
vector([one]), vector([one]))
16351635

0 commit comments

Comments
 (0)