From e017f6603ce98fd80199598efd5d6b65c2df11bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gr=C3=B6ber?= Date: Tue, 22 Aug 2023 19:58:03 +0200 Subject: [PATCH] Fix i386 FP excess-precision issue in fstapi (Fixes: #3898) Likely related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=323#c225 Thanks to @jix for digging this up --- libs/fst/fstapi.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/fst/fstapi.cc b/libs/fst/fstapi.cc index da0d959a0..dddf7d39a 100644 --- a/libs/fst/fstapi.cc +++ b/libs/fst/fstapi.cc @@ -4334,7 +4334,7 @@ int fstReaderInit(struct fstReaderContext *xc) hdr_incomplete = (xc->start_time == 0) && (xc->end_time == 0); fstFread(&dcheck, 8, 1, xc->f); - xc->double_endian_match = (dcheck == FST_DOUBLE_ENDTEST); + xc->double_endian_match = (dcheck == (double)FST_DOUBLE_ENDTEST); if (!xc->double_endian_match) { union {