mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
Narrow return type of location::set: cint -> bool
This commit is contained in:
committed by
Floris Bruynooghe
parent
d16bdafaf0
commit
a9dd78f622
@@ -1743,7 +1743,7 @@ pub unsafe extern "C" fn dc_set_location(
|
||||
let ffi_context = &*context;
|
||||
ffi_context
|
||||
.with_inner(|ctx| location::set(ctx, latitude, longitude, accuracy))
|
||||
.unwrap_or(0)
|
||||
.unwrap_or(false) as _
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
||||
Reference in New Issue
Block a user