Skip to content

Commit 6db8d9f

Browse files
author
Marie BONBOIRE
committed
remove _matrix calloc
1 parent 78846ca commit 6db8d9f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/sage/matrix/matrix_modn_dense_template.pxi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,10 @@ cdef class Matrix_modn_dense_template(Matrix_dense):
449449

450450
if zeroed_alloc:
451451
self._entries = <celement *>check_calloc(self._nrows * self._ncols, sizeof(celement))
452-
self._matrix = <celement **>check_calloc(self._nrows, sizeof(celement*))
453452
else:
454453
self._entries = <celement *>check_allocarray(self._nrows * self._ncols, sizeof(celement))
455-
self._matrix = <celement **>check_allocarray(self._nrows, sizeof(celement*))
456-
454+
455+
self._matrix = <celement **>check_allocarray(self._nrows, sizeof(celement*))
457456
cdef unsigned int k
458457
cdef Py_ssize_t i
459458
k = 0

0 commit comments

Comments
 (0)