]> git.cworth.org Git - notmuch/commitdiff
lib/string_map: fix return type of string_cmp
authorDavid Bremner <david@tethera.net>
Sat, 2 Mar 2019 18:10:51 +0000 (14:10 -0400)
committerDavid Bremner <david@tethera.net>
Wed, 6 Mar 2019 01:46:41 +0000 (21:46 -0400)
I can't figure out how checking the sign of a bool ever worked. The
following program demonstrates the problem (i.e. for me it prints 1).

 #include <stdio.h>
 #include <stdbool.h>
 int main(int argc, char **argv) {
    bool x;
    x = -1;
    printf("x = %d\n", x);
 }

This seems to be mandated by the C99 standard 6.3.1.2.


No differences found