Skip to content

Commit b07bf88

Browse files
sdroegebilelmoussaoui
authored andcommitted
glib: Use time_t correctly for manual bindings
1 parent ca3d1df commit b07bf88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glib/src/date.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ impl Date {
242242
}
243243

244244
#[doc(alias = "g_date_set_time_t")]
245-
pub fn set_time(&mut self, time_: u32) -> Result<(), BoolError> {
245+
pub fn set_time(&mut self, time_: libc::time_t) -> Result<(), BoolError> {
246246
let mut c = *self;
247247
unsafe {
248248
ffi::g_date_set_time_t(c.to_glib_none_mut().0, time_ as _);

0 commit comments

Comments
 (0)