Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LVGL Compile issue with MSVC toolchain #4601

Closed
MouriNaruto opened this issue Sep 26, 2023 · 1 comment
Closed

LVGL Compile issue with MSVC toolchain #4601

MouriNaruto opened this issue Sep 26, 2023 · 1 comment

Comments

@MouriNaruto
Copy link
Contributor

I found an issue when I update the LVGL git submodule for the LVGL for Visual Studio project.

if((uint32_t)LV_ABS((int16_t)act_opt - sel_opt) > real_option_cnt / 2) {

(uint32_t)LV_ABS((int16_t)act_opt - sel_opt) should be changed to (uint32_t)LV_ABS((int16_t)(act_opt - sel_opt)), or you will meet the compilation "error C4146: unary minus operator applied to unsigned type, result still unsigned" when you compiling LVGL with MSVC toolchain.

Kenji Mouri

MouriNaruto added a commit to lvgl/lv_port_pc_visual_studio that referenced this issue Sep 27, 2023
@kisvegabor
Copy link
Member

Fixed, thank you!

MouriNaruto added a commit to lvgl/lv_port_pc_visual_studio that referenced this issue Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants