From a875304eb0da7cc7966cf45317cf57392192430f Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Fri, 26 Jul 2024 09:50:20 +0200 Subject: [PATCH] fix inverted conditional for NAN handling --- kernel/riscv64/scal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/riscv64/scal.c b/kernel/riscv64/scal.c index bebbed67e..bd53fcff9 100644 --- a/kernel/riscv64/scal.c +++ b/kernel/riscv64/scal.c @@ -43,7 +43,7 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT da, FLOAT *x, BLAS if ( (n <= 0) || (inc_x <= 0)) return(0); - if (dummy2 == 0) { + if (dummy2 == 1) { while(j < n) {