Fixed incorrect assumption about the number of bytes returned by the
entropy coder. All testcases pass again.
diff --git a/tests/ectest.c b/tests/ectest.c
index 41fd047..947afae 100644
--- a/tests/ectest.c
+++ b/tests/ectest.c
@@ -118,8 +118,13 @@
     }
     tell_bits = ec_enc_tell(&enc, 0);
     ec_enc_done(&enc);
+    if ((tell_bits+7)/8 < ec_byte_bytes(&buf))
+    {
+      fprintf (stderr, "tell() lied, there's %d bytes instead of %d\n", 
+               ec_byte_bytes(&buf), (tell_bits+7)/8);
+    }
     tell_bits -= 8*ec_byte_bytes(&buf);
-    if (tell_bits > 0 || tell_bits < -7)
+    if (tell_bits > 8)
     {
        printf ("tell() failed with %d bit offset\n", tell_bits);
        return -1;