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

checker: warn when casting between reference types outside of unsafe (#7892)

This commit is contained in:
Nick Treleaven
2021-01-05 15:02:04 +00:00
committed by GitHub
parent eaba21d81a
commit 3203a124b2
9 changed files with 22 additions and 16 deletions

View File

@@ -474,7 +474,7 @@ enum CharClass_parse_state {
fn (re RE) get_char_class(pc int) string {
buf := []byte{len:(re.cc.len)}
mut buf_ptr := &byte(&buf)
mut buf_ptr := unsafe {&byte(&buf)}
mut cc_i := re.prog[pc].cc_index
mut i := 0