diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-05-28 14:59:08 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-28 08:16:37 -0700 |
commit | 22bfc4936fd587e166f0e212eeb388db41426fd7 (patch) | |
tree | 77e22d40463c273bef71a4b798ddafd4eb748d76 /planner.c | |
parent | e3215123d1d34f98bf72ded187ad9ee201db9789 (diff) | |
download | subsurface-22bfc4936fd587e166f0e212eeb388db41426fd7.tar.gz |
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 <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |