fix math priority with potential unsigned value issues

This commit is contained in:
yggverse 2026-01-10 21:21:09 +02:00
parent cc89dd6b9c
commit 843352bff2

View file

@ -77,7 +77,7 @@ fn index(
global.provider_id,
search,
Sort::Desc,
page.map(|p| p - 1 * global.list_limit),
page.map(|p| if p > 1 { p - 1 } else { 1 } * global.list_limit),
Some(global.list_limit)
).map_err(|e| {
error!("Could not get contents: `{e}`");