Skip to content
Snippets Groups Projects
Commit df9694d7 authored by rswindell's avatar rswindell
Browse files

Fix bcc32 warnings: Possibly incorrect assignment

parent 7bb44f2d
No related branches found
No related tags found
No related merge requests found
...@@ -766,7 +766,7 @@ js_word_wrap(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) ...@@ -766,7 +766,7 @@ js_word_wrap(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
/* Get prefix from the first line (ouch) */ /* Get prefix from the first line (ouch) */
l=0; l=0;
i=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; i+=prefix_bytes;
if(prefix_len>len/3*2) { if(prefix_len>len/3*2) {
/* This prefix is insane (more than 2/3rds of the new width) hack it down to size */ /* 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) ...@@ -798,7 +798,7 @@ js_word_wrap(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
crcount++; crcount++;
break; break;
case '\n': 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 */ /* Move the input pointer offset to the last char of the prefix */
i+=prefix_bytes; i+=prefix_bytes;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment