From 71bb9979ed60411c256754e532e7b850ac5a31c7 Mon Sep 17 00:00:00 2001 From: "Ali-Mirghasemi\\Elec" Date: Sat, 26 Nov 2022 10:45:17 +0330 Subject: [PATCH] Fix compare macro --- Src/InputStream.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Src/InputStream.h b/Src/InputStream.h index bff5be8..a6cf427 100644 --- a/Src/InputStream.h +++ b/Src/InputStream.h @@ -17,7 +17,7 @@ extern "C" { #define ISTREAM_VER_MAJOR 0 #define ISTREAM_VER_MINOR 4 -#define ISTREAM_VER_FIX 0 +#define ISTREAM_VER_FIX 1 #include "StreamBuffer.h" @@ -282,7 +282,8 @@ Stream_LenType IStream_incomingBytes(IStream* stream); #endif // STREAM_FIND_FUNCTIONS -#define IStream_compareAt(STREAM, IDX, VAL, LEN) Stream_compareAt(&((STREAM)->Buffer)), (IDX), (VAL), (LEN)) +#define IStream_compare(STREAM, VAL, LEN) Stream_compareAt(&((STREAM)->Buffer), (VAL), (LEN)) +#define IStream_compareAt(STREAM, IDX, VAL, LEN) Stream_compareAt(&((STREAM)->Buffer), (IDX), (VAL), (LEN)) #ifdef __cplusplus };