mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: replace MIN and MAX macrors by standard versions
In C++ files, replace MIN and MAX by std::min and std::max, respectively. There are still a few C files using these macros. Convert them in due course. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b89029353f
commit
ec0bc2d06c
6 changed files with 16 additions and 16 deletions
|
@ -163,7 +163,7 @@ static dc_status_t parse_gasmixes(device_data_t *devdata, struct dive *dive, dc_
|
|||
}
|
||||
|
||||
clear_cylinder_table(&dive->cylinders);
|
||||
for (i = 0; i < MAX(ngases, ntanks); i++) {
|
||||
for (i = 0; i < std::max(ngases, ntanks); i++) {
|
||||
cylinder_t cyl = empty_cylinder;
|
||||
cyl.cylinder_use = NOT_USED;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue