summaryrefslogtreecommitdiff
path: root/lib/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compile.c')
-rw-r--r--lib/compile.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/compile.c b/lib/compile.c
index b0cd818..651bd70 100644
--- a/lib/compile.c
+++ b/lib/compile.c
@@ -406,7 +406,7 @@ static void pushValues(compilecontext* ctx, bool forward, ...)
size_t cur = 0;
va_start(ap, forward);
- while(len = va_arg(ap, size_t))
+ while((len = va_arg(ap, size_t)))
{
if(cur + len > VAL_BUF)
{
@@ -623,9 +623,8 @@ bool isEscaped(const char* str, const char* posi)
char* splitTagMatch(r_script* script, char* regexp)
{
char* second = regexp;
- while(second = strchr(second, kTagDelim))
+ while((second = strchr(second, kTagDelim)))
{
- uint escs = 0;
if(!isEscaped(regexp, second))
{
second[0] = '\0';
@@ -939,7 +938,7 @@ int compileStatement(r_script* script, compilecontext* ctx)
compileSpace(ctx);
/* Check for a delimiter */
- if(delim = strchr(kValidDelim, *(ctx->in)))
+ if((delim = strchr(kValidDelim, *(ctx->in))))
{
ctx->in++;
end = ctx->in;