mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 07:37:24 +00:00
esp32_s3_box: Implement unimplemented function
Fixes panic when touching the screen on the carousel demo
This commit is contained in:
parent
8a299fbff2
commit
5850e5655e
1 changed files with 2 additions and 2 deletions
|
@ -240,8 +240,8 @@ extern "C" fn fminf(a: f32, b: f32) -> f32 {
|
|||
}
|
||||
}
|
||||
#[no_mangle]
|
||||
extern "C" fn fmodf() {
|
||||
unimplemented!("fmodf");
|
||||
extern "C" fn fmodf(a: f32, b: f32) -> f32 {
|
||||
((a as u32) % (b as u32)) as f32
|
||||
}
|
||||
#[no_mangle]
|
||||
extern "C" fn fmod(a: f64, b: f64) -> f64 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue