ea2c637b356150794c11e758c51030a3b6ef396e
Fixes a regression from https://gitlab.gnome.org/GNOME/gnome-calendar/-/commit/62345668748b571939c1c7b441e44664a05a0287 Essentially, `gcal_range_compare()` is just a faster subset of `gcal_range_calculate_overlap()`. The commit that introduced this regression accidentally flipped the sign of the compare function, which made it no longer match with the implementation of overlap. The function's implementation also did not match its doc comment, returning any integer instead of only `-1`, `0` or `1`. Since the behavior described in the doc comment is more commonly used for comparison functions, the implementation was adjusted to match it. To avoid any such failures in the future, the next commits will add tests to validate. Fixes: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/work_items/1615> See: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/770> Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/798>
Installation
Links
- Homepage: apps.gnome.org/Calendar
- Report an issue: gitlab.gnome.org/GNOME/gnome-calendar/issues
- Donate: donate.gnome.org
- Translate: l10n.gnome.org/module/gnome-calendar
- Contact: matrix.to/#/#gnome-calendar:gnome.org
Contributing
For information on how to contribute, please check CONTRIBUTING.md and HACKING.md.
Languages
C
97.6%
Meson
1.2%
CSS
0.7%
Python
0.3%
Shell
0.2%
