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

ci: fix sanitizers and add -fsanitize=undefined (#7306)

This commit is contained in:
ka-weihe
2020-12-14 06:34:47 +01:00
committed by GitHub
parent 9b139c58ca
commit f57c7032b4
3 changed files with 24 additions and 6 deletions

View File

@@ -356,7 +356,7 @@ fn converter(mut pn PrepNumber) u64 {
mut r2 := u32(0) // 96-bit precision integer
mut r1 := u32(0)
mut r0 := u32(0)
mask28 := u32(0xF<<28)
mask28 := u32(u64(0xF)<<28)
mut result := u64(0)
// working on 3 u32 to have 96 bit precision
s0 = u32(pn.mantissa & u64(0x00000000FFFFFFFF))