]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/check.c
tdb2: tdb_expand on empty database now tested.
[ccan] / ccan / tdb2 / check.c
index e39e50837d31c92de88de9efe85d574fdfc8af2e..ca5479b56d06fbf9650982a6c7b34325b11dc62e 100644 (file)
@@ -86,8 +86,8 @@ static bool check_header(struct tdb_context *tdb)
 static int off_cmp(const tdb_off_t *a, const tdb_off_t *b)
 {
        /* Can overflow an int. */
-       return a > b ? 1
-               : a < b ? -1
+       return *a > *b ? 1
+               : *a < *b ? -1
                : 0;
 }