From f20da3a4a6c359d3757cdecc700ab9f589b78a82 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Thu, 7 Nov 2024 00:59:18 +0100 Subject: [PATCH] use ReturnCode instead of integer --- bzlib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bzlib.rs b/bzlib.rs index 1b3937fb7..5c5a126ef 100644 --- a/bzlib.rs +++ b/bzlib.rs @@ -1096,7 +1096,7 @@ pub unsafe extern "C" fn BZ2_bzCompressEnd(strm: *mut bz_stream) -> c_int { (bzfree)(strm.opaque, strm.state); strm.state = std::ptr::null_mut::(); - 0 as libc::c_int + ReturnCode::BZ_OK as c_int } #[repr(u8)]