aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorFilip Gawin <[email protected]>2018-10-29 02:05:45 +0100
committerFilip Gawin <[email protected]>2018-10-29 13:38:58 +0100
commit08226bc6b0147b69a1afb74d83c6a8821e93601b (patch)
treefd39c1d42c21eb751b1aa9696d7c758f6fc7d4de /common
parent56b8b976427175731b205262f11b420581e24efd (diff)
Simplify some statements
Diffstat (limited to 'common')
-rw-r--r--common/uintmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/uintmap.c b/common/uintmap.c
index 18d52d64..3654779c 100644
--- a/common/uintmap.c
+++ b/common/uintmap.c
@@ -47,7 +47,7 @@ ALenum InsertUIntMapEntry(UIntMap *map, ALuint key, ALvoid *value)
do {
ALsizei step = count>>1;
ALsizei i = pos+step;
- if(!(map->keys[i] < key))
+ if(map->keys[i] >= key)
count = step;
else
{
@@ -130,7 +130,7 @@ ALvoid *RemoveUIntMapKey(UIntMap *map, ALuint key)
do {
ALsizei step = count>>1;
ALsizei i = pos+step;
- if(!(map->keys[i] < key))
+ if(map->keys[i] >= key)
count = step;
else
{
@@ -166,7 +166,7 @@ ALvoid *LookupUIntMapKey(UIntMap *map, ALuint key)
do {
ALsizei step = count>>1;
ALsizei i = pos+step;
- if(!(map->keys[i] < key))
+ if(map->keys[i] >= key)
count = step;
else
{