From 5366ec795bfa31d8b459cab1f59678cfb6b810ce Mon Sep 17 00:00:00 2001 From: XProger Date: Tue, 9 Jul 2019 07:00:14 +0300 Subject: [PATCH] fix build --- src/format.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/format.h b/src/format.h index a37da8a..0cc5bea 100644 --- a/src/format.h +++ b/src/format.h @@ -1088,9 +1088,13 @@ namespace TR { }; } - struct fixed { - uint16 L; - int16 H; + union fixed { + uint32 value; + struct { + uint16 L; + int16 H; + }; + operator float() const { return H + L / 65535.0f; }