mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
Port calls to slices.Sort functions since they now need a cmp() function rather than a less() function
Also rename os.SEEK_* to io.Seek* as the former has been deprecated
This commit is contained in:
@@ -81,5 +81,5 @@ func (self *Loop) dispatch_timers(now time.Time) error {
|
||||
}
|
||||
|
||||
func (self *Loop) sort_timers() {
|
||||
slices.SortStableFunc(self.timers, func(a, b *timer) bool { return a.deadline.Before(b.deadline) })
|
||||
slices.SortStableFunc(self.timers, func(a, b *timer) int { return a.deadline.Compare(b.deadline) })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user