Skip to content

fix(bar): fix bit overflow - #6841

Merged
FASTSHIFT merged 1 commit into
lvgl:masterfrom
FloHomi:patch-1
Sep 14, 2024
Merged

FASTSHIFT merged 1 commit into
lvgl:masterfrom
FloHomi:patch-1

Conversation

@FloHomi

@FloHomi FloHomi commented Sep 12, 2024

Copy link
Copy Markdown
Contributor

The enum of orientation and mode may be intepreted as int and for that reason two bits ( : 2 ) are not enough and cause problems. By using three bits the problem is solved.

bug

Notes

the enum of orientation and mode may be intepreted as int and for that reason  two bits ( : 2 ) are not enough and cause problems.
By using  three bits the problem is solved

@kisvegabor kisvegabor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

It was reported here: #6212 (comment)

@FASTSHIFT FASTSHIFT changed the title fix(lv_bar_private.h): lv_bar_orientation_t / lv_bar_mode_t two bit too small for int fix(bar): lv_bar_orientation_t / lv_bar_mode_t two bit too small for int Sep 14, 2024
@FASTSHIFT FASTSHIFT changed the title fix(bar): lv_bar_orientation_t / lv_bar_mode_t two bit too small for int fix(bar): fix bit overflow Sep 14, 2024
@FASTSHIFT
FASTSHIFT merged commit a583e92 into lvgl:master Sep 14, 2024
@liamHowatt

Copy link
Copy Markdown
Contributor

Thanks! The same issue has happened before in the roller: #6683

kisvegabor pushed a commit to kisvegabor/lvgl_fork that referenced this pull request Oct 1, 2024
kisvegabor pushed a commit that referenced this pull request Oct 9, 2024
rodb70 pushed a commit to rodb70/lvgl that referenced this pull request Nov 8, 2024
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

Successfully merging this pull request may close these issues.

4 participants