diff options
author | Stef Walter <stef@thewalter.net> | 2006-08-29 18:04:11 +0000 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2006-08-29 18:04:11 +0000 |
commit | fd2e875c5fb0c7aa5e550d41dad4a6794df8d078 (patch) | |
tree | 2e20f50eb11d11ac72500c9d3897e8f8b602cc78 /lib/compile.c | |
parent | 9a41a6510a2aad8e0d07097c81f54c968b0fd99b (diff) |
compiler warnings when compiling rep
Diffstat (limited to 'lib/compile.c')
-rw-r--r-- | lib/compile.c | 7 |
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; |