mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: add unsafe block for the int->enum cast in bench_compare_tokens.v (#16438)
This commit is contained in:
parent
5dc5766def
commit
fe2db64384
@ -15,7 +15,7 @@ fn main() {
|
||||
bmark.measure('${max_repetitions} repetitions of token.keywords["${kw}"] = ${res}')
|
||||
|
||||
for _ in 0 .. max_repetitions {
|
||||
res = token.Kind(km_trie.find(kw))
|
||||
res = unsafe { token.Kind(km_trie.find(kw)) }
|
||||
}
|
||||
bmark.measure('${max_repetitions} repetitions of km_trie.find("${kw}") = ${res}')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user