# Merge pull request \#4982 from MageJohn/fix/binarySearch · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/543031db35ede984b60a00c8f8a7859c6acfebdd)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 543031db35ede984b60a00c8f8a7859c6acfebdd

Requested commit: 543031db35ede984b60a00c8f8a7859c6acfebdd

Commit: 543031db35ede984b60a00c8f8a7859c6acfebdd

Tree: 9e11d46350f628786c3205ab2ad1d1642fd89e2e

Author: Andrew Kelley

Committer: GitHub

## Message

```
Merge pull request #4982 from MageJohn/fix/binarySearch

 sort.binarySearch: fix integer underflow (#4980) 
```

## Parents

- [f1360bee1ce6096f1c123347313a7d24a0d90650](https://git.cafe/gitcafe/zig/commit/f1360bee1ce6096f1c123347313a7d24a0d90650?format=markdown)

- [f5f77089b76be2832640884f14c552c49c9fda1f](https://git.cafe/gitcafe/zig/commit/f5f77089b76be2832640884f14c552c49c9fda1f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/543031db35ede984b60a00c8f8a7859c6acfebdd?format=markdown)
