diff --git a/include/armadillo_bits/fn_svd.hpp b/include/armadillo_bits/fn_svd.hpp index 1dfe76b1..6cb5543d 100644 --- a/include/armadillo_bits/fn_svd.hpp +++ b/include/armadillo_bits/fn_svd.hpp @@ -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" ); diff --git a/include/armadillo_bits/fn_svds.hpp b/include/armadillo_bits/fn_svds.hpp index 8acefaaa..d61d1c72 100644 --- a/include/armadillo_bits/fn_svds.hpp +++ b/include/armadillo_bits/fn_svds.hpp @@ -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" );