fix errors in tests
diff --git a/t/picotls.c b/t/picotls.c
index a5a79dc..8bc5ab4 100644
--- a/t/picotls.c
+++ b/t/picotls.c
@@ -1916,9 +1916,13 @@
     src = buf.base;
     end = buf.base + buf.off;
     ptls_decode_block(src, end, len_encoded, {
-        ok(end - src == 255);
-        for (size_t i = 0; i < max_bytes; ++i)
-            ok(*src == i);
+        ok(end - src == max_bytes);
+        int bytes_eq = 1;
+        for (size_t i = 0; i < max_bytes; ++i) {
+            if (src[i] != (uint8_t)i)
+                bytes_eq = 0;
+        }
+        ok(bytes_eq);
         src = end;
     });