diff options
Diffstat (limited to 'mdk-stage1/newt/listbox.c')
-rw-r--r-- | mdk-stage1/newt/listbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/newt/listbox.c b/mdk-stage1/newt/listbox.c index ef276aeb4..cdbf792ca 100644 --- a/mdk-stage1/newt/listbox.c +++ b/mdk-stage1/newt/listbox.c @@ -297,7 +297,7 @@ void newtListboxSetEntry(newtComponent co, int num, const char * text) { free(item->text); item->text = strdup(text); } - if (li->userHasSetWidth == 0 && strlen(text) > li->curWidth) { + if (li->userHasSetWidth == 0 && strlen(text) > (size_t)li->curWidth) { updateWidth(co, li, strlen(text)); } @@ -329,7 +329,7 @@ int newtListboxAppendEntry(newtComponent co, const char * text, item = li->boxItems = malloc(sizeof(struct items)); } - if (!li->userHasSetWidth && text && (strlen(text) > li->curWidth)) + if (!li->userHasSetWidth && text && (strlen(text) > (size_t)li->curWidth)) updateWidth(co, li, strlen(text)); item->text = strdup(text); item->data = data; item->next = NULL; @@ -369,7 +369,7 @@ int newtListboxInsertEntry(newtComponent co, const char * text, item->next = NULL; } - if (!li->userHasSetWidth && text && (strlen(text) > li->curWidth)) + if (!li->userHasSetWidth && text && (strlen(text) > (size_t)li->curWidth)) updateWidth(co, li, strlen(text)); item->text = strdup(text?text:"(null)"); item->data = data; |