-
- Downloads
Fix linear_gradient float precision bug.
This was reported by: https://github.com/ArthurSonzogni/FTXUI/issues/998 Indeed, the `t` interpolation factor, which is itself interpolated might become slightly larger than 1.0. This is due to the float precision. This was supposedly handled, but there was an off-by-one error in the check. Along the way, fix a bug found by a fuzzer. Bug: https://github.com/ArthurSonzogni/FTXUI/issues/998 Fixed: https://github.com/ArthurSonzogni/FTXUI/issues/998
Showing
- CHANGELOG.md 3 additions, 0 deletionsCHANGELOG.md
- cmake/ftxui_set_options.cmake 0 additions, 4 deletionscmake/ftxui_set_options.cmake
- cmake/ftxui_test.cmake 1 addition, 0 deletionscmake/ftxui_test.cmake
- src/ftxui/component/dropdown.cpp 5 additions, 1 deletionsrc/ftxui/component/dropdown.cpp
- src/ftxui/component/dropdown_test.cpp 34 additions, 0 deletionssrc/ftxui/component/dropdown_test.cpp
- src/ftxui/dom/linear_gradient.cpp 5 additions, 1 deletionsrc/ftxui/dom/linear_gradient.cpp
Loading
Please register or sign in to comment