Skip to content

Commit

Permalink
Fix ArrayController’s fetch limit
Browse files Browse the repository at this point in the history
Fixes OpenEmu#4965
Regression from fce5ce1
  • Loading branch information
J-rg committed Jan 10, 2024
1 parent 24d970f commit 5622427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenEmu/ArrayController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ArrayController: NSArrayController {
req.sortDescriptors = fetchSortDescriptors
}

req.fetchLimit = min(0, limit)
req.fetchLimit = max(0, limit)

return try super.fetch(with: req, merge: merge)
}
Expand Down

0 comments on commit 5622427

Please sign in to comment.