mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-24 05:26:29 +00:00
![]() 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. |
||
---|---|---|
.. | ||
cpp.rs | ||
rust.rs |