Skip to content

Commit

Permalink
Fix compare macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-Mirghasemi committed Nov 26, 2022
1 parent 2bb8343 commit 71bb997
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Src/InputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
};
Expand Down

0 comments on commit 71bb997

Please sign in to comment.