mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix warning
This commit is contained in:
parent
1a94e82834
commit
ca6c6c6fcc
@ -297,7 +297,7 @@ uint16_t lv_txt_get_next_line(const char * txt, const lv_font_t * font,
|
||||
|
||||
/* If max_width doesn't mater simply find the new line character
|
||||
* without thinking about word wrapping*/
|
||||
if(flag & LV_TXT_FLAG_EXPAND || flag & LV_TXT_FLAG_FIT) {
|
||||
if((flag & LV_TXT_FLAG_EXPAND) || (flag & LV_TXT_FLAG_FIT)) {
|
||||
uint32_t i;
|
||||
for(i = 0; txt[i] != '\n' && txt[i] != '\r' && txt[i] != '\0'; i++) {
|
||||
/*Just find the new line chars or string ends by incrementing `i`*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user