Skip to content

Commit 7fc0a70

Browse files
committed
fix: correct non null assert
Fix the typo in non null assertion. we should check res_mat ofc. Signed-off-by: Rodion Suvorov <rodion.suvorov.94@mail.ru>
1 parent 23968af commit 7fc0a70

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

experimental/algorithm/LAGraph_RPQMatrix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ static GrB_Info LAGraph_RPQMatrixLor(RPQMatrixPlan *plan, char *msg)
213213
OK(LAGraph_RPQMatrix_solver(lhs, msg)) ;
214214
OK(LAGraph_RPQMatrix_solver(rhs, msg)) ;
215215

216-
LG_ASSERT(rhs->mat != NULL, GrB_NULL_POINTER) ;
217-
LG_ASSERT(lhs->mat != NULL, GrB_NULL_POINTER) ;
216+
LG_ASSERT(rhs->res_mat != NULL, GrB_NULL_POINTER) ;
217+
LG_ASSERT(lhs->res_mat != NULL, GrB_NULL_POINTER) ;
218218

219219
GrB_Matrix lhs_mat = lhs->res_mat ;
220220
GrB_Matrix rhs_mat = rhs->res_mat ;

0 commit comments

Comments
 (0)