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

v.vcache: workaround a tcc arm64 invalid memory access bug

This commit is contained in:
Delyan Angelov 2021-04-07 19:09:41 +03:00
parent fdb4f17866
commit 0cb0b0f9c6
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -66,7 +66,7 @@ pub fn (mut cm CacheManager) set_temporary_options(new_opts []string) {
} }
pub fn (mut cm CacheManager) key2cpath(key string) string { pub fn (mut cm CacheManager) key2cpath(key string) string {
mut cpath := cm.k2cpath[key] mut cpath := cm.k2cpath[key] or { '' }
if cpath == '' { if cpath == '' {
hk := cm.vopts + key hk := cm.vopts + key
a := hash.sum64_string(hk, 5).hex_full() a := hash.sum64_string(hk, 5).hex_full()