From: uz Date: Wed, 14 Oct 2009 10:04:20 +0000 (+0000) Subject: Fixed an error in the SB_SkipMultiple macro. X-Git-Tag: V2.13.1~161 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=869a1369c40ded5f40ff33c227204fc4841212cd;p=cc65 Fixed an error in the SB_SkipMultiple macro. git-svn-id: svn://svn.cc65.org/cc65/trunk@4363 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/common/strbuf.h b/src/common/strbuf.h index 8e3fc8863..0bd0a7f7e 100644 --- a/src/common/strbuf.h +++ b/src/common/strbuf.h @@ -295,7 +295,8 @@ INLINE void SB_SkipMultiple (StrBuf* B, unsigned Count) } } #else -# define SB_SkipMultiple(B) do { if (((B)->Index += (Count)) > (B)->Len) (B)->Index = (B)->Len; } while (0) +# define SB_SkipMultiple(B, Count) \ + do { if (((B)->Index += (Count)) > (B)->Len) (B)->Index = (B)->Len; } while (0) #endif void SB_Drop (StrBuf* B, unsigned Count);