From 637723bbec8c7bbe8d050fd2c216b84a97de0646 Mon Sep 17 00:00:00 2001 From: Tom Beach Date: Thu, 12 Oct 2023 21:17:35 +0100 Subject: [PATCH] Bug Fixes --- examples/usage/src/exporting.ts | 2 +- src/wasm/parsing/IfcTokenChunk.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/usage/src/exporting.ts b/examples/usage/src/exporting.ts index fbbdd0a7..46ecb9a0 100644 --- a/examples/usage/src/exporting.ts +++ b/examples/usage/src/exporting.ts @@ -28,6 +28,6 @@ export default async function() { }; } - Equals("In eq out", diffBytes, 403045); + Equals("In eq out", diffBytes, 403018); }); } \ No newline at end of file diff --git a/src/wasm/parsing/IfcTokenChunk.cpp b/src/wasm/parsing/IfcTokenChunk.cpp index d4f11805..5ac2ab43 100644 --- a/src/wasm/parsing/IfcTokenChunk.cpp +++ b/src/wasm/parsing/IfcTokenChunk.cpp @@ -156,7 +156,7 @@ namespace webifc::parsing while ((c >= '0' && c <= '9') || (c == '.') || c == 'e' || c == 'E' || c == '-'|| c == '+') { temp.push_back(c); - if (c=='.') isFrac = true; + if (c=='.' || c == 'E') isFrac = true; _fileStream->Forward(); c = _fileStream->Get(); }