diff options
Diffstat (limited to 'zap/source/any/mem/eq.c')
-rw-r--r-- | zap/source/any/mem/eq.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/zap/source/any/mem/eq.c b/zap/source/any/mem/eq.c index 0229fb6..3f6cd8e 100644 --- a/zap/source/any/mem/eq.c +++ b/zap/source/any/mem/eq.c @@ -6,14 +6,14 @@ #include <zap/mem.h> -zap_bool zap_eq(void const * const _lbuf,void const * const _rbuf,zap_sz const _num) { - zap_byte const * lbuf; - zap_byte const * rbuf; - zap_byte * const stop = (zap_byte *)_lbuf + _num; +zap_i8 zap_eq(void const * const _lbuf,void const * const _rbuf,zap_sz const _num) { + zap_i8 const * lbuf; + zap_i8 const * rbuf; + zap_i8 * const stop = (zap_i8 *)_lbuf + _num; for (lbuf = _lbuf,rbuf = _rbuf;lbuf != stop;++lbuf,++rbuf) { if (*lbuf != *rbuf) { - return zap_false; + return 0x0u; } } - return zap_true; + return 0x1u; } |