mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Report errors when opening files
Signed-off-by: Nathan Samson <nathansamson@gmail.com>
This commit is contained in:
parent
65ef1bae20
commit
11becb8750
5 changed files with 100 additions and 25 deletions
2
dive.c
2
dive.c
|
@ -130,8 +130,6 @@ struct dive *fixup_dive(struct dive *dive)
|
|||
}
|
||||
|
||||
/* Don't pick a zero for MERGE_MIN() */
|
||||
#define MIN(a,b) ((a)<(b)?(a):(b))
|
||||
#define MAX(a,b) ((a)>(b)?(a):(b))
|
||||
#define MERGE_MAX(res, a, b, n) res->n = MAX(a->n, b->n)
|
||||
#define MERGE_MIN(res, a, b, n) res->n = (a->n)?(b->n)?MIN(a->n, b->n):(a->n):(b->n)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue