mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
make vet happy
This commit is contained in:
@@ -46,7 +46,8 @@ Asan_Located_Address_String :: struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Asan_Shadow_Mapping :: struct {
|
Asan_Shadow_Mapping :: struct {
|
||||||
scale, offset: uint
|
scale: uint,
|
||||||
|
offset: uint,
|
||||||
}
|
}
|
||||||
|
|
||||||
asan_poison_slice :: proc(region: $T/[]$E) {
|
asan_poison_slice :: proc(region: $T/[]$E) {
|
||||||
@@ -285,8 +286,7 @@ asan_is_in_fake_stack :: proc(fake_stack: rawptr, addr: rawptr) -> ([]byte, bool
|
|||||||
when ASAN_ENABLED {
|
when ASAN_ENABLED {
|
||||||
begin: rawptr
|
begin: rawptr
|
||||||
end: rawptr
|
end: rawptr
|
||||||
addr := __asan_addr_is_in_fake_stack(fake_stack, addr, &begin, &end)
|
if __asan_addr_is_in_fake_stack(fake_stack, addr, &begin, &end) == nil {
|
||||||
if addr == nil {
|
|
||||||
return {}, false
|
return {}, false
|
||||||
}
|
}
|
||||||
return ((cast([^]byte)begin)[:uintptr(end)-uintptr(begin)]), true
|
return ((cast([^]byte)begin)[:uintptr(end)-uintptr(begin)]), true
|
||||||
|
|||||||
Reference in New Issue
Block a user