From 4f1034b605b0e093ffd8e8e8771dfa4d5715ef95 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 2 Jan 2022 18:43:21 +0100 Subject: [PATCH] cleanup: make a variable signed The prev_time variable was defined as unsigned and mixed with signed variables. gcc rightfully complains with -Wextra. Signed-off-by: Berthold Stoeger --- core/import-csv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/import-csv.c b/core/import-csv.c index e648f6394..14fd51816 100644 --- a/core/import-csv.c +++ b/core/import-csv.c @@ -522,7 +522,7 @@ int parse_txt_file(const char *filename, const char *csv, struct dive_table *tab int prev_depth = 0, cur_sampletime = 0, prev_setpoint = -1, prev_ndl = -1; bool has_depth = false, has_setpoint = false, has_ndl = false; char *lineptr, *key, *value; - unsigned int prev_time = 0; + int prev_time = 0; cylinder_t cyl = empty_cylinder; struct dive *dive;