From 49b44ad4bc2ca5cf703a6110d724a0b51b96b836 Mon Sep 17 00:00:00 2001
From: fef <owo@fef.moe>
Date: Thu, 15 Jul 2021 22:50:53 +0200
Subject: [PATCH] string: fix nstreq brainfart

---
 include/neo/_string.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/neo/_string.h b/include/neo/_string.h
index e3d4bca..9cf5a83 100644
--- a/include/neo/_string.h
+++ b/include/neo/_string.h
@@ -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