summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-05-28 14:59:08 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-28 08:16:37 -0700
commit22bfc4936fd587e166f0e212eeb388db41426fd7 (patch)
tree77e22d40463c273bef71a4b798ddafd4eb748d76 /planner.c
parente3215123d1d34f98bf72ded187ad9ee201db9789 (diff)
downloadsubsurface-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.c4
1 files changed, 2 insertions, 2 deletions
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;