diff --git a/src/viewer/inlines.h b/src/viewer/inlines.h
index 224f8e6..6538720 100644
a
|
b
|
|
16 | 16 | static inline off_t |
17 | 17 | mcview_offset_doz (off_t a, off_t b) |
18 | 18 | { |
19 | | return (a >= b) ? a - b : 0; |
| 19 | return (b < a) ? (a - b) : 0; |
20 | 20 | } |
21 | 21 | |
22 | 22 | /* --------------------------------------------------------------------------------------------- */ |
… |
… |
mcview_offset_rounddown (off_t a, off_t b) |
34 | 34 | static inline screen_dimen |
35 | 35 | mcview_dimen_doz (screen_dimen a, screen_dimen b) |
36 | 36 | { |
37 | | return (a >= b) ? a - b : 0; |
| 37 | return (b < a) ? a - b : 0; |
38 | 38 | } |
39 | 39 | |
40 | 40 | /* --------------------------------------------------------------------------------------------- */ |