From 31a4954679dae3cbbea746c7fdb2d0a1de8b478e Mon Sep 17 00:00:00 2001 From: Nikolas Garofil Date: Wed, 8 Aug 2018 16:26:09 +0200 Subject: [PATCH] Fix sonarcloud complaints about minus unsigned --- src/tailhead.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tailhead.cc b/src/tailhead.cc index 2572ca6a..2f1aa63d 100644 --- a/src/tailhead.cc +++ b/src/tailhead.cc @@ -175,7 +175,7 @@ static void print_tailhead(const char *type, struct text_object *obj, char *p, endofstring = strlen(p); } } 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); tailstring(p, i, ht->wantedlines); } else {