git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Yeah it's broken
[ipdf/code.git]
/
src
/
tests
/
represent.cpp
diff --git
a/src/tests/represent.cpp
b/src/tests/represent.cpp
index
52b8c62
..
d7b129e
100644
(file)
--- a/
src/tests/represent.cpp
+++ b/
src/tests/represent.cpp
@@
-193,12
+193,12
@@
int main(int argc, char ** argv)
typedef pair<uint8_t, Real> Pear;
list<Pear> space;
typedef pair<uint8_t, Real> Pear;
list<Pear> space;
- uint
8_t a0 = 0x
00;
- for (uint
8_t a = a0; a < a0+0x
FF; ++a)
+ uint
16_t a0 = 0x00
00;
+ for (uint
16_t a = a0; a < a0+0x00
FF; ++a)
{
{
- Real x = BitsToReal<
2,5
>(&a);
- uint
8_t b = 0; BitsFromReal<2,5
>(x, &b);
- Real y = BitsToReal<
2,5
>(&b);
+ Real x = BitsToReal<
5,10
>(&a);
+ uint
16_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));
if (y != x)
{
Warn("%x -> %lf -> %x -> %lf", a, Float(x), b, Float(y));
UCC
git Repository :: git.ucc.asn.au