We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6dc9ff commit 96af769Copy full SHA for 96af769
src/windows/mod.rs
@@ -126,6 +126,7 @@ mod tests {
126
test_error(End(), b"\xF1\x80");
127
test_error(End(), b"\xF1\x80\x80");
128
test_error(Byte(b'\xF1'), b"\xF1\x80\x80\xF1");
129
+ test_error(CodePoint(0x11_09CC), b"\xF4\x90\xA7\x8C");
130
test_error(CodePoint(0x15_EC46), b"\xF5\x9E\xB1\x86");
131
test_error(End(), b"\xFB");
132
test_error(End(), b"\xFB\x80");
src/windows/wtf8/code_points.rs
@@ -80,7 +80,7 @@ where
80
r#continue!();
81
82
if byte >= 0xF0 {
83
- if code_point.wrapping_sub(0x10) > 0x100 {
+ if code_point.wrapping_sub(0x10) >= 0x100 {
84
invalid = true;
85
}
86
0 commit comments