From 6917074cea22cd2de4a92b5c189c7ff50ede59b5 Mon Sep 17 00:00:00 2001 From: Sam Moore Date: Thu, 24 Apr 2014 00:36:25 +0800 Subject: [PATCH] Yeah it's broken --- src/tests/represent.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tests/represent.cpp b/src/tests/represent.cpp index 52b8c62..d7b129e 100644 --- a/src/tests/represent.cpp +++ b/src/tests/represent.cpp @@ -193,12 +193,12 @@ int main(int argc, char ** argv) typedef pair Pear; list space; - uint8_t a0 = 0x00; - for (uint8_t a = a0; a < a0+0xFF; ++a) + uint16_t a0 = 0x0000; + for (uint16_t a = a0; a < a0+0x00FF; ++a) { - Real x = BitsToReal<2,5>(&a); - uint8_t b = 0; BitsFromReal<2,5>(x, &b); - Real y = BitsToReal<2,5>(&b); + Real x = BitsToReal<5,10>(&a); + uint16_t b = 0; BitsFromReal<5,10>(x, &b); + Real y = BitsToReal<5,10>(&b); if (y != x) { Warn("%x -> %lf -> %x -> %lf", a, Float(x), b, Float(y)); -- 2.20.1