mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-20 23:45:18 +01:00
fix: PageSize bounds check
This commit is contained in:
@@ -89,7 +89,7 @@ impl PageSize {
|
||||
pub const DEFAULT: u16 = 4096;
|
||||
|
||||
pub const fn new(size: u32) -> Option<Self> {
|
||||
if !(PageSize::MIN < size && size <= PageSize::MAX) {
|
||||
if size < PageSize::MIN || size > PageSize::MAX {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user