mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Code cleanup
Make precedence of && over || explicit. Explicitly convert between char * and unsigned char *. Don't assign potentially negative return code to an unsigend variable. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e76675d4df
commit
b1538c809d
6 changed files with 18 additions and 15 deletions
|
@ -624,8 +624,9 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
|
|||
}
|
||||
}
|
||||
} else {
|
||||
if (plan_display_transitions || dp->entered || !dp->next || (nextdp && dp->depth != nextdp->depth) ||
|
||||
!isascent && gaschange_before && ((nextdp && dp->depth != nextdp->depth) || gaschange_after) ||
|
||||
if (plan_display_transitions || dp->entered || !dp->next ||
|
||||
(nextdp && dp->depth != nextdp->depth) ||
|
||||
(!isascent && gaschange_before && nextdp && dp->depth != nextdp->depth) || gaschange_after ||
|
||||
(isascent && gaschange_after && nextdp && dp->depth != nextdp->depth )) {
|
||||
snprintf(temp, sizeof(temp), translate("gettextFromC", "%3.0f%s"), depthvalue, depth_unit);
|
||||
len += snprintf(buffer + len, sizeof(buffer) - len, "<tr><td style='padding-left: 10px; float: right;'>%s</td>", temp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue