mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 20:24:35 +03:00
Fix warning on ARM processors.
Thanks to Kelly Anderson.
This commit is contained in:
2
String.c
2
String.c
@ -118,7 +118,7 @@ char* String_getToken(const char* line, const unsigned short int numMatch) {
|
||||
count++;
|
||||
|
||||
if(inWord == 1){
|
||||
if (count == numMatch && line[i] != ' ' && line[i] != '\0' && line[i] != '\n' && line[i] != EOF) {
|
||||
if (count == numMatch && line[i] != ' ' && line[i] != '\0' && line[i] != '\n' && line[i] != (char)EOF) {
|
||||
match[foundCount] = line[i];
|
||||
foundCount++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user