From 63e2954e945ec2210d1759d8933186c6caa1dbf9 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Tue, 12 Feb 2019 00:01:38 +0100 Subject: [PATCH] Garux: disable stringio qnan fallback because of mistake --- libs/stringio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/stringio.h b/libs/stringio.h index d7099f59..7d192a2a 100644 --- a/libs/stringio.h +++ b/libs/stringio.h @@ -232,12 +232,15 @@ inline bool Tokeniser_getFloat( Tokeniser& tokeniser, float& f ){ if ( token != 0 && string_parse_float( token, f ) ) { return true; } + #define DISABLE_QNAN_FALLBACK + #ifndef DISABLE_QNAN_FALLBACK //fallback for 1.#IND 1.#INF 1.#QNAN cases, happening sometimes after rotating & often scaling with tex lock in BP mode else if ( token != 0 && strstr( token, ".#" ) ) { globalErrorStream() << "Warning: " << Unsigned( tokeniser.getLine() ) << ":" << Unsigned( tokeniser.getColumn() ) << ": expected parse problem at '" << token << "': wanted '#number'\nProcessing anyway\n"; *strstr( token, ".#" ) = '\0'; return true; } + #endif Tokeniser_unexpectedError( tokeniser, token, "#number" ); return false; } -- 2.39.2