string: fix nstreq brainfart

This commit is contained in:
anna 2021-07-15 22:50:53 +02:00
parent c71e36e7c8
commit 49b44ad4bc
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -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