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

cgen: fix minor typos in map_fn_ptrs (#7679)

This commit is contained in:
yuyi 2020-12-30 03:02:28 +08:00 committed by GitHub
parent 114df3ce7c
commit f6d64c74c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2305,9 +2305,9 @@ fn (mut g Gen) map_fn_ptrs(key_typ table.TypeSymbol) (string, string, string, st
mut free_fn := '&map_free_nop'
match key_typ.kind {
.byte, .bool, .i8, .char {
hash_fn = '&map_hash_int_2'
key_eq_fn = '&map_eq_int_2'
clone_fn = '&map_clone_int_2'
hash_fn = '&map_hash_int_1'
key_eq_fn = '&map_eq_int_1'
clone_fn = '&map_clone_int_1'
}
.i16, .u16 {
hash_fn = '&map_hash_int_2'