]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/database.c
Merge branch 'apple'
[people/ms/libloc.git] / src / database.c
index 01c52a52e16b2071b4781f6db2b1321e08c16694..3099dfc64172800977c71ea6edb940abc7c1b9ce 100644 (file)
@@ -668,7 +668,7 @@ LOC_EXPORT int loc_database_get_country(struct loc_database* db,
                // adjust our search pointers
                loc_country_unref(*country);
 
-               if (result < 0) {
+               if (result > 0) {
                        lo = i + 1;
                } else
                        hi = i - 1;