From df50bf81f36c0cf42a38d126eaf45bbd9bb1ccf3 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Sun, 14 Jan 2018 23:41:15 -0500 Subject: [PATCH] Fix typo in ReadUIntBase128 pseudo-code. The assignment operator was being used instead of equality operator. --- woff2/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woff2/index.html b/woff2/index.html index 18b2f86b..4d93ccda 100644 --- a/woff2/index.html +++ b/woff2/index.html @@ -396,7 +396,7 @@

UIntBase128 Data Type

UInt8 data_byte = data.getNextUInt8(); // No leading 0's - if (i == 0 && data_byte = 0x80) return false; + if (i == 0 && data_byte == 0x80) return false; // If any of top 7 bits are set then << 7 would overflow if (accum & 0xFE000000) return false;