Skip to content

Commit 41166ce

Browse files
CHOLMOD: horzcat, check if A and B dtype mismatch
1 parent e261422 commit 41166ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CHOLMOD/MatrixOps/cholmod_horzcat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ cholmod_sparse *CHOLMOD(horzcat) // return C = [A B]
8989
ERROR (CHOLMOD_INVALID, "A and B must have same # rows") ;
9090
return (NULL) ;
9191
}
92-
if (mode != 0 && (A->xtype != B->xtype || A->dtype != A->dtype))
92+
if (mode != 0 && (A->xtype != B->xtype || A->dtype != B->dtype))
9393
{
9494
// A and B must have the same xtype and dtype if mode is 0
9595
ERROR (CHOLMOD_INVALID, "A and B must have same xtype and dtype") ;

0 commit comments

Comments
 (0)