commit ef8378646afc90d393e89f703b52c59cdefd0db6
parent 48c55c5c1e7823c69a2ed20eee52754700699083
Author: Frederic Cambus <fred@statdns.com>
Date: Mon, 8 Oct 2018 22:41:46 +0200
Modify the previously added check to silence compiler warnings
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c
@@ -214,7 +214,7 @@ int ansilove_ansi(struct ansilove_ctx *ctx, struct ansilove_options *options)
uint32_t seq_column = strtonum(seqGrab, 0, UINT32_MAX, &errstr);
free(seqGrab);
- if (seq_column && (column - seq_column) >= 0)
+ if (seq_column && column >= seq_column)
column -= seq_column;
else if (column > 0)
column--;