use void_ptr instead of (void*)

This commit is contained in:
conrad
2025-07-23 15:51:38 +10:00
parent 92837026c3
commit e727967b39
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -104,7 +104,7 @@ svd
arma_conform_check
(
( ((void*)(&U) == (void*)(&S)) || (&U == &V) || ((void*)(&S) == (void*)(&V)) ),
( (void_ptr(&U) == void_ptr(&S)) || (&U == &V) || (void_ptr(&S) == void_ptr(&V)) ),
"svd(): two or more output objects are the same object"
);
@@ -170,7 +170,7 @@ svd_econ
arma_conform_check
(
( ((void*)(&U) == (void*)(&S)) || (&U == &V) || ((void*)(&S) == (void*)(&V)) ),
( (void_ptr(&U) == void_ptr(&S)) || (&U == &V) || (void_ptr(&S) == void_ptr(&V)) ),
"svd_econ(): two or more output objects are the same object"
);
+2 -2
View File
@@ -43,7 +43,7 @@ svds_helper
arma_conform_check
(
( ((void*)(&U) == (void*)(&S)) || (&U == &V) || ((void*)(&S) == (void*)(&V)) ),
( (void_ptr(&U) == void_ptr(&S)) || (&U == &V) || (void_ptr(&S) == void_ptr(&V)) ),
"svds(): two or more output objects are the same object"
);
@@ -167,7 +167,7 @@ svds_helper
arma_conform_check
(
( ((void*)(&U) == (void*)(&S)) || (&U == &V) || ((void*)(&S) == (void*)(&V)) ),
( (void_ptr(&U) == void_ptr(&S)) || (&U == &V) || (void_ptr(&S) == void_ptr(&V)) ),
"svds(): two or more output objects are the same object"
);