string: fix nstreq brainfart
This commit is contained in:
parent
c71e36e7c8
commit
49b44ad4bc
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ int nstrcmp(const string *s1, const string *s2, error *err);
|
|||
* @param err: Error pointer
|
||||
* @returns Whether the two strings are equal, unless an error occurred
|
||||
*/
|
||||
#define nstreq(s1, s2, err) ( (bool)(nstrcmp(s1, s2, err) != 0) )
|
||||
#define nstreq(s1, s2, err) ( (bool)(nstrcmp(s1, s2, err) == 0) )
|
||||
|
||||
/**
|
||||
* Prepend fill characters to a string to make it a specific length, and return
|
||||
|
|
Loading…
Reference in a new issue