summaryrefslogtreecommitdiff
path: root/zap/src/strcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'zap/src/strcmp.c')
-rw-r--r--zap/src/strcmp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/zap/src/strcmp.c b/zap/src/strcmp.c
index 101f7dc..0ed0a59 100644
--- a/zap/src/strcmp.c
+++ b/zap/src/strcmp.c
@@ -6,6 +6,8 @@
#include <zap/priv.h>
+#include <zap/mem.h>
+
#include <stdint.h>
int_least8_t zap_strcmp(char const * const _lstr,char const * const _rstr) {
@@ -14,7 +16,7 @@ int_least8_t zap_strcmp(char const * const _lstr,char const * const _rstr) {
for (;;++lpos,++rpos) {
unsigned char const lchr = *lpos;
unsigned char const rchr = *rpos;
- sus_likely (lchr != rchr) {return lchr < rchr ? INT8_MIN : INT8_MAX;}
+ sus_likely (lchr != rchr) {return lchr < rchr ? INT_LEAST8_MIN : INT_LEAST8_MAX;}
sus_unlikely (lchr == (unsigned char)0x0) {return 0x0;}
}
sus_unreach();