1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 01:57:09 +00:00

Fix sonarcloud complaints about minus unsigned

This commit is contained in:
Nikolas Garofil 2018-08-08 16:26:09 +02:00 committed by Brenden Matthews
parent d1d99bc1da
commit 31a4954679

View File

@ -175,7 +175,7 @@ static void print_tailhead(const char *type, struct text_object *obj, char *p,
endofstring = strlen(p); endofstring = strlen(p);
} }
} else if (strcmp(type, "tail") == 0) { } else if (strcmp(type, "tail") == 0) {
fseek(fp, (long) -p_max_size, SEEK_END); fseek(fp, - (long) p_max_size, SEEK_END);
i = fread(p, 1, p_max_size - 1, fp); i = fread(p, 1, p_max_size - 1, fp);
tailstring(p, i, ht->wantedlines); tailstring(p, i, ht->wantedlines);
} else { } else {