1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

websocket: update to work with latest V

This commit is contained in:
Leah Lundqvist
2020-04-24 07:32:51 +02:00
committed by GitHub
parent 998fc8fc07
commit f3e3d7e0c5
5 changed files with 29 additions and 24 deletions

View File

@ -49,7 +49,7 @@ fn (s mut Utf8State) seq(r0 bool, r1 bool, is_tail bool) bool {
fn (s mut Utf8State) next_state (c byte) {
//sequence 1
if s.index == 0 {
if ((c >= 0x00 + 1 && c <= 0x7F) || c == 0x00) {
if (c >= 0x00 + 1 && c <= 0x7F) || c == 0x00 {
return
}
s.index++