diff options
author | Christopher Wellons <wellons@nullprogram.com> | 2017-10-06 10:12:05 -0400 |
---|---|---|
committer | Christopher Wellons <wellons@nullprogram.com> | 2017-10-06 10:12:05 -0400 |
commit | dca0eda3474931849efc1a5c2516a813c501b5d5 (patch) | |
tree | 482641cdb30cfb31e0216bd9de9cfced25c2e78c | |
parent | 6c3750fc0406ac136dbc7b2a78858cc5d8184ba9 (diff) |
Pass the recovery tests
-rw-r--r-- | utf8.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,7 +53,7 @@ utf8_decode(void *buf, long *c, int *e) { *e ^= 0x2aU; // top two bits of each tail byte correct? *e >>= shifte[len]; - return s + len; + return s + len + !len; } #endif |