diff options
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -366,7 +366,7 @@ extern struct dive_table dive_table; extern int selected_dive; #define current_dive (get_dive(selected_dive)) -static inline struct dive *get_dive(unsigned int nr) +static inline struct dive *get_dive(int nr) { if (nr >= dive_table.nr || nr < 0) return NULL; |