diff options
| author | Yuri Pieters <magejohnyjtp@gmail.com> | 2020-04-09 01:49:42 +0100 |
|---|---|---|
| committer | Yuri Pieters <magejohnyjtp@gmail.com> | 2020-04-09 01:58:57 +0100 |
| commit | 447dc2bb9011078e80acbe3f51135ff1ad2bf163 (patch) | |
| tree | ba5f2446a0197bc5030e16a5fe21072abc667232 /src/codegen.cpp | |
| parent | c45ba49b8b6e8abeb2e96d28860273247e61ab18 (diff) | |
| download | zig-447dc2bb9011078e80acbe3f51135ff1ad2bf163.tar.gz zig-447dc2bb9011078e80acbe3f51135ff1ad2bf163.zip | |
sort.binarySearch: fix integer underflow (#4980)
When the key was smaller than any value in the array, an error was
ocurring with the mid being zero and having 1 subtracted from it.
Diffstat (limited to 'src/codegen.cpp')
0 files changed, 0 insertions, 0 deletions
