Skip to content

Commit 1d89c1d

Browse files
authored
Fix #846: multip. result converted to larger type (#849)
1 parent d615b50 commit 1d89c1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ inline void MatrixClear(Matrix<fp_type>& m) {
5050
*/
5151
template <typename fp_type>
5252
inline void MatrixIdentity(unsigned n, Matrix<fp_type>& m) {
53-
m.resize(2 * n * n);
53+
m.resize(2 * static_cast<typename Matrix<fp_type>::size_type>(n) * n);
5454

5555
MatrixClear(m);
5656

0 commit comments

Comments
 (0)