mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix incorrect argument order for %.*f
Strangely, *prinf() on Linux appears to do the right thing in either order (my guess is based on the type of the two values?), but on Windows things go badly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
95cb4e85ee
commit
a3ce3221fd
2 changed files with 2 additions and 2 deletions
|
@ -651,7 +651,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
|
|||
snprintf(buffer + len, sizeof(buffer) - len,
|
||||
translate("gettextFromC", "<span style='color: red;'>Warning:</span> "
|
||||
"high pO2 value %.2f at %d:%02u with gas %s at depth %.*f %s<br>"),
|
||||
pO2 / 1000.0, FRACTION(dp->time, 60), gasname(&dp->gasmix), depth_value, decimals, depth_unit);
|
||||
pO2 / 1000.0, FRACTION(dp->time, 60), gasname(&dp->gasmix), decimals, depth_value, depth_unit);
|
||||
}
|
||||
}
|
||||
dp = dp->next;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue