From e727967b39e64aaf0ff263ee88b1d3fb7fdfd775 Mon Sep 17 00:00:00 2001 From: conrad Date: Wed, 23 Jul 2025 15:51:38 +1000 Subject: [PATCH] use void_ptr instead of (void*) --- include/armadillo_bits/fn_svd.hpp | 4 ++-- include/armadillo_bits/fn_svds.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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" );