Skip to content

Commit 906dfd3

Browse files
authored
Fix windows+ssl build error with unmatched types (RustPython#4725)
1 parent a824e7b commit 906dfd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/src/ssl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,12 +539,12 @@ mod _ssl {
539539

540540
#[pygetset]
541541
fn options(&self) -> libc::c_ulong {
542-
self.ctx.read().options().bits()
542+
self.ctx.read().options().bits() as _
543543
}
544544
#[pygetset(setter)]
545545
fn set_options(&self, opts: libc::c_ulong) {
546546
self.builder()
547-
.set_options(SslOptions::from_bits_truncate(opts));
547+
.set_options(SslOptions::from_bits_truncate(opts as _));
548548
}
549549
#[pygetset]
550550
fn protocol(&self) -> i32 {

0 commit comments

Comments
 (0)