Fix type warnings
This commit is contained in:
parent
20a41088c6
commit
a541d0f24a
|
@ -471,7 +471,7 @@ static bool configTrimString(char* string)
|
|||
return false;
|
||||
}
|
||||
|
||||
int length = strlen(string);
|
||||
size_t length = strlen(string);
|
||||
if (length == 0) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ int badwordsInit()
|
|||
break;
|
||||
}
|
||||
|
||||
int len = strlen(word);
|
||||
size_t len = strlen(word);
|
||||
if (word[len - 1] == '\n') {
|
||||
len--;
|
||||
word[len] = '\0';
|
||||
|
|
|
@ -1001,7 +1001,7 @@ int _win_input_str(int win, char* dest, int maxLength, int x, int y, int textCol
|
|||
Window* window = windowGetWindow(win);
|
||||
unsigned char* buffer = window->buffer + window->width * y + x;
|
||||
|
||||
int cursorPos = strlen(dest);
|
||||
size_t cursorPos = strlen(dest);
|
||||
dest[cursorPos] = '_';
|
||||
dest[cursorPos + 1] = '\0';
|
||||
|
||||
|
@ -1155,7 +1155,7 @@ int _GNW_process_menu(MenuBar* menuBar, int pulldownIndex)
|
|||
// Calculates max length of string needed to represent a1 or a2.
|
||||
//
|
||||
// 0x4DD03C
|
||||
int _calc_max_field_chars_wcursor(int a1, int a2)
|
||||
size_t _calc_max_field_chars_wcursor(int a1, int a2)
|
||||
{
|
||||
char* str = (char*)internal_malloc(17);
|
||||
if (str == NULL) {
|
||||
|
@ -1163,10 +1163,10 @@ int _calc_max_field_chars_wcursor(int a1, int a2)
|
|||
}
|
||||
|
||||
sprintf(str, "%d", a1);
|
||||
int len1 = strlen(str);
|
||||
size_t len1 = strlen(str);
|
||||
|
||||
sprintf(str, "%d", a2);
|
||||
int len2 = strlen(str);
|
||||
size_t len2 = strlen(str);
|
||||
|
||||
internal_free(str);
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ int _win_width_needed(char** fileNameList, int fileNameListLength);
|
|||
int _win_input_str(int win, char* dest, int maxLength, int x, int y, int textColor, int backgroundColor);
|
||||
int sub_4DBD04(int win, Rect* rect, char** items, int itemsLength, int a5, int a6, MenuBar* menuBar, int pulldownIndex);
|
||||
int _GNW_process_menu(MenuBar* menuBar, int pulldownIndex);
|
||||
int _calc_max_field_chars_wcursor(int a1, int a2);
|
||||
size_t _calc_max_field_chars_wcursor(int a1, int a2);
|
||||
void _GNW_intr_init();
|
||||
void _GNW_intr_exit();
|
||||
void _tm_watch_msgs();
|
||||
|
|
Loading…
Reference in New Issue