slint/internal/compiler/generator
Simon Hausmann 96c80a2dd1
Fix crash when using an int model in a repeater with a negative value (#2063)
Make sure that we return an unsigned for row_count() in C++ and Rust by ensuring an unsigned int model at creation time.

For the interpreter this "worked" by chance as casting a negative floating
number to usize automatically caps at zero, and all values are stored as f64. For safety this patch
applies the same fix though, to be on the safe side.
2023-01-14 21:20:14 +01:00
..
cpp.rs Fix crash when using an int model in a repeater with a negative value (#2063) 2023-01-14 21:20:14 +01:00
rust.rs Fix crash when using an int model in a repeater with a negative value (#2063) 2023-01-14 21:20:14 +01:00