diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-08-27 16:44:35 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-08-27 16:44:35 -0800 |
| commit | f29cfae093ecd20d403abf79954c0e20f3ec3da8 (patch) | |
| tree | abee37566057faa0cbb89ad2d79964a99f1251af /lib/libbindle/larray.c | |
| parent | 8ea30f1360e12bbcc92109edf0f3654b61b23639 (diff) | |
| download | bindletools-f29cfae093ecd20d403abf79954c0e20f3ec3da8.tar.gz bindletools-f29cfae093ecd20d403abf79954c0e20f3ec3da8.tar.bz2 bindletools-f29cfae093ecd20d403abf79954c0e20f3ec3da8.tar.xz bindletools-f29cfae093ecd20d403abf79954c0e20f3ec3da8.zip | |
libbindle: replacing BNDL_ARRAY_LASTDUP with BNDL_BDUPLAST
Diffstat (limited to 'lib/libbindle/larray.c')
| -rw-r--r-- | lib/libbindle/larray.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libbindle/larray.c b/lib/libbindle/larray.c index 15cf1f3..c2fe053 100644 --- a/lib/libbindle/larray.c +++ b/lib/libbindle/larray.c | |||
| @@ -197,7 +197,7 @@ bindle_bindex( | |||
| 197 | { | 197 | { |
| 198 | switch(opts & BNDL_BMASK_DUPS) | 198 | switch(opts & BNDL_BMASK_DUPS) |
| 199 | { | 199 | { |
| 200 | case BNDL_ARRAY_LASTDUP: | 200 | case BNDL_BDUPLAST: |
| 201 | if (low == mid) | 201 | if (low == mid) |
| 202 | { | 202 | { |
| 203 | *wouldbep = (size_t)(mid+1); | 203 | *wouldbep = (size_t)(mid+1); |
| @@ -235,7 +235,7 @@ bindle_bindex( | |||
| 235 | if ((rc = (*compar)(ptr, key)) == 0) | 235 | if ((rc = (*compar)(ptr, key)) == 0) |
| 236 | { | 236 | { |
| 237 | *wouldbep = (size_t)mid; | 237 | *wouldbep = (size_t)mid; |
| 238 | if ((opts & BNDL_BMASK_DUPS) == BNDL_ARRAY_LASTDUP) | 238 | if ((opts & BNDL_BMASK_DUPS) == BNDL_BDUPLAST) |
| 239 | *wouldbep = (size_t)(mid+1); | 239 | *wouldbep = (size_t)(mid+1); |
| 240 | return(mid); | 240 | return(mid); |
| 241 | }; | 241 | }; |
