From b3519a9603e8f7f1c9830e14f918e87daf8fea13 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Tue, 30 Nov 2021 18:27:53 +0100 Subject: 49611 based on 49590 (Martijn Dekker): disable Inf and NaN in math expressions for sh emulation --- ChangeLog | 5 +++++ Src/math.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f9ae6a3bb..20bb88d88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2021-11-30 Oliver Kiddle + + * 49611 based on 49590 (Martijn Dekker): Src/math.c: disable Inf + and NaN in math expressions for sh emulation + 2021-11-28 Oliver Kiddle * 49606: Src/hashnameddir.c, Src/utils.c, configure.ac: remove old diff --git a/Src/math.c b/Src/math.c index 4f24361a4..777ad9c31 100644 --- a/Src/math.c +++ b/Src/math.c @@ -863,7 +863,7 @@ zzlex(void) p = ptr; ptr = ie; - if (ie - p == 3) { + if (ie - p == 3 && !EMULATION(EMULATE_SH)) { if ((p[0] == 'N' || p[0] == 'n') && (p[1] == 'A' || p[1] == 'a') && (p[2] == 'N' || p[2] == 'n')) { -- cgit 1.4.1