diff --git a/compiler/tests/fn_test.v b/compiler/tests/fn_test.v index 45498c0c7d..4293553dfe 100644 --- a/compiler/tests/fn_test.v +++ b/compiler/tests/fn_test.v @@ -106,7 +106,7 @@ fn test_mut_ptr() { assert buf[0] == 77 } -fn test_high_fn(f fn(int) int) { +fn high_fn(f fn(int) int) { } diff --git a/vlib/net/urllib/urllib.v b/vlib/net/urllib/urllib.v index f9d4e4d828..4432bb18cd 100644 --- a/vlib/net/urllib/urllib.v +++ b/vlib/net/urllib/urllib.v @@ -45,7 +45,7 @@ fn error_msg(message, val string) string { // reserved characters correctly. See golang.org/issue/5684. fn should_escape(c byte, mode EncodingMode) bool { // ยง2.3 Unreserved characters (alphanum) - if `a` <= c && c <= `z` || `A` <= c && c <= `Z` || `0` <= c && c <= `9` { + if (`a` <= c && c <= `z`) || (`A` <= c && c <= `Z`) || (`0` <= c && c <= `9`) { return false } @@ -377,10 +377,10 @@ fn (u &Userinfo) string() string { fn split_by_scheme(rawurl string) ?[]string { for i := 0; i < rawurl.len; i++ { c := rawurl[i] - if `a` <= c && c <= `z` || `A` <= c && c <= `Z` { + if (`a` <= c && c <= `z`) || (`A` <= c && c <= `Z`) { // do nothing } - else if `0` <= c && c <= `9` || c == `+` || c == `-` || c == `.` { + else if (`0` <= c && c <= `9`) || (c == `+` || c == `-` || c == `.`) { if i == 0 { return ['', rawurl] }