diff options
-rw-r--r-- | lib/asan/asan_dll_thunk.cc | 2 | ||||
-rw-r--r-- | lib/asan/asan_win.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/asan/asan_dll_thunk.cc b/lib/asan/asan_dll_thunk.cc index 0f2802e0..56f271f5 100644 --- a/lib/asan/asan_dll_thunk.cc +++ b/lib/asan/asan_dll_thunk.cc @@ -128,7 +128,7 @@ extern "C" { static fntype fn = (fntype)getRealProcAddressOrDie("__asan_init_v3"); fn(); __asan_option_detect_stack_use_after_return = - (bool)__asan_should_detect_stack_use_after_return(); + (__asan_should_detect_stack_use_after_return() != 0); } } diff --git a/lib/asan/asan_win.cc b/lib/asan/asan_win.cc index d36f3e52..8f35e0b9 100644 --- a/lib/asan/asan_win.cc +++ b/lib/asan/asan_win.cc @@ -27,7 +27,7 @@ extern "C" { SANITIZER_INTERFACE_ATTRIBUTE - bool __asan_should_detect_stack_use_after_return() { + int __asan_should_detect_stack_use_after_return() { __asan_init(); return __asan_option_detect_stack_use_after_return; } |