From e33c2f7b6697467f5a717a953fd1ef5586c1cb4d Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sun, 28 Jul 2019 16:36:31 +0200 Subject: [PATCH] Less dependencies on compiler details for RBA/pya tests. --- src/gsi/gsi_test/gsiTest.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gsi/gsi_test/gsiTest.h b/src/gsi/gsi_test/gsiTest.h index c3c366815..6c69b4190 100644 --- a/src/gsi/gsi_test/gsiTest.h +++ b/src/gsi/gsi_test/gsiTest.h @@ -155,10 +155,10 @@ struct A bool a9a (int i) const { return i == 5; } int a9b (bool f) const { return f ? 5 : -5; } - short a11_s (double f) { return short(f); } - unsigned short a11_us (double f) { return (unsigned short)(f); } - int a11_i (double f) { return int(f); } - unsigned int a11_ui (double f) { return (unsigned int)(f); } + short a11_s (double f) { return short(a11_l(f)); } + unsigned short a11_us (double f) { return (unsigned short)(a11_ul(f)); } + int a11_i (double f) { return int(a11_l(f)); } + unsigned int a11_ui (double f) { return (unsigned int)(a11_ul(f)); } long a11_l (double f) { return long(f); } unsigned long a11_ul (double f) { return (unsigned long)(f); } long long a11_ll (double f) { return (long long)(f); }