diff --git a/rust/src/bs_safe.rs b/rust/src/bs_safe.rs index 79726d5a..74d24ee7 100644 --- a/rust/src/bs_safe.rs +++ b/rust/src/bs_safe.rs @@ -124,7 +124,7 @@ pub fn open_library>(path: P) -> Result { let self_minor: c_int = env!("CARGO_PKG_VERSION_MINOR").parse().unwrap(); let self_patch: c_int = env!("CARGO_PKG_VERSION_PATCH").parse().unwrap(); - if (self_major != major) | (self_minor != minor) { + if !((self_major == major) & (self_minor <= minor)) { return Err(BridgeStanError::BadLibraryVersion( format!("{}.{}.{}", major, minor, patch), format!("{}.{}.{}", self_major, self_minor, self_patch),