Copy-paste fix pattern
library CB-Math
fn main() {
u256 capped = CB-Math.min(player_score, max)
save capped
}
ClosedBit Docs
ClosedBit error docs
Numeric overflow. A checked integer or floating lane exceeded the value it can represent.
A checked integer or floating lane exceeded the value it can represent.
Clamp before the operation, use a wider lane, or split the value into smaller pieces.
library CB-Math
fn main() {
u256 capped = CB-Math.min(player_score, max)
save capped
}