From df9694d7651ab31e30b466eb14099d20b9f2284a Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 8 Apr 2006 01:00:45 +0000 Subject: [PATCH] Fix bcc32 warnings: Possibly incorrect assignment --- src/sbbs3/js_global.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sbbs3/js_global.c b/src/sbbs3/js_global.c index aadd49cf5e..6cfcc05e8d 100644 --- a/src/sbbs3/js_global.c +++ b/src/sbbs3/js_global.c @@ -766,7 +766,7 @@ js_word_wrap(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) /* Get prefix from the first line (ouch) */ l=0; i=0; - if(handle_quotes && (quote_count=get_prefix(inbuf, &prefix_bytes, &prefix_len, len*2+2))) { + if(handle_quotes && (quote_count=get_prefix(inbuf, &prefix_bytes, &prefix_len, len*2+2))!=0) { i+=prefix_bytes; if(prefix_len>len/3*2) { /* This prefix is insane (more than 2/3rds of the new width) hack it down to size */ @@ -798,7 +798,7 @@ js_word_wrap(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) crcount++; break; case '\n': - if(handle_quotes && (quote_count=get_prefix(inbuf+i+1, &prefix_bytes, &prefix_len, len*2+2))) { + if(handle_quotes && (quote_count=get_prefix(inbuf+i+1, &prefix_bytes, &prefix_len, len*2+2))!=0) { /* Move the input pointer offset to the last char of the prefix */ i+=prefix_bytes; } -- GitLab