From 22bfc4936fd587e166f0e212eeb388db41426fd7 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Thu, 28 May 2015 14:59:08 +0200 Subject: Add explicit casts to silence compiler warnings clang complais when converting (char *) to (unsigned char *), so tell it it's fine. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- planner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'planner.c') diff --git a/planner.c b/planner.c index 3c9b9df33..ad855e619 100644 --- a/planner.c +++ b/planner.c @@ -470,7 +470,7 @@ static unsigned int *sort_stops(int *dstops, int dnr, struct gaschanges *gstops, { int i, gi, di; int total = dnr + gnr; - int *stoplevels = malloc(total * sizeof(int)); + unsigned int *stoplevels = malloc(total * sizeof(int)); /* no gaschanges */ if (gnr == 0) { @@ -866,7 +866,7 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool double tissue_tolerance = 0.0; struct gaschanges *gaschanges = NULL; int gaschangenr; - int *stoplevels = NULL; + unsigned int *stoplevels = NULL; bool stopping = false; bool clear_to_ascend; int clock, previous_point_time; -- cgit v1.2.3-70-g09d2