From 9bf0736dd484ebd71ae53f53ce3d1b436da57fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Fri, 11 May 2018 19:13:02 +0000 Subject: [PATCH] Fixes in less used functions Former-commit-id: c90e785fd2f7a1672447d4d3136ce7c443dc1b8e --- qpms/translations.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qpms/translations.c b/qpms/translations.c index 73d8748..96ec920 100644 --- a/qpms/translations.c +++ b/qpms/translations.c @@ -920,7 +920,7 @@ complex double qpms_trans_calculator_get_A_buf(const qpms_trans_calculator *c, // TODO warn? return NAN+I*NAN; int csphase = qpms_normalisation_t_csphase(c->normalisation); - switch(c->normalisation) { + switch(qpms_normalisation_t_normonly(c->normalisation)) { // TODO use normalised legendre functions for Taylor and Kristensson case QPMS_NORMALISATION_TAYLOR: case QPMS_NORMALISATION_KRISTENSSON: @@ -973,7 +973,7 @@ complex double qpms_trans_calculator_get_B_buf(const qpms_trans_calculator *c, // TODO warn? return NAN+I*NAN; int csphase = qpms_normalisation_t_csphase(c->normalisation); - switch(c->normalisation) { + switch(qpms_normalisation_t_normonly(c->normalisation)) { case QPMS_NORMALISATION_TAYLOR: case QPMS_NORMALISATION_KRISTENSSON: case QPMS_NORMALISATION_NONE: