Narrow return type of location::set: cint -> bool

This commit is contained in:
Dmitry Bogatov
2019-10-13 15:16:32 +00:00
committed by Floris Bruynooghe
parent d16bdafaf0
commit a9dd78f622
3 changed files with 5 additions and 5 deletions

View File

@@ -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]