From ae6ef66ef824da9bc6348bf9d1b588cd4f2ded9b Mon Sep 17 00:00:00 2001 From: Devin Matthews Date: Wed, 30 Dec 2020 17:34:55 -0600 Subject: [PATCH] bli_diag_offset_with_trans had wrong return type. Fixes #468. --- frame/include/bli_param_macro_defs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frame/include/bli_param_macro_defs.h b/frame/include/bli_param_macro_defs.h index b43a81a73..91554b226 100644 --- a/frame/include/bli_param_macro_defs.h +++ b/frame/include/bli_param_macro_defs.h @@ -602,9 +602,9 @@ BLIS_INLINE void bli_shift_diag_offset_to_shrink_uplo( uplo_t uplo, doff_t* diag else if ( bli_is_lower( uplo ) ) *diagoff -= 1; } -BLIS_INLINE bool bli_diag_offset_with_trans( trans_t trans, doff_t diagoff ) +BLIS_INLINE doff_t bli_diag_offset_with_trans( trans_t trans, doff_t diagoff ) { - return ( bool ) + return ( doff_t ) ( bli_does_trans( trans ) ? -diagoff : diagoff ); }