mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
fix compiler warning: signed and unsigned type in conditional expression
This commit is contained in:
parent
dbb93a2718
commit
9442fc0b52
@ -2636,7 +2636,10 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||||||
case 'N':
|
case 'N':
|
||||||
/* disable the output I/O buffering. note that the option is called
|
/* disable the output I/O buffering. note that the option is called
|
||||||
--buffer but is mostly used in the negative form: --no-buffer */
|
--buffer but is mostly used in the negative form: --no-buffer */
|
||||||
config->nobuffer = (bool)(longopt ? !toggle : toggle);
|
if(longopt)
|
||||||
|
config->nobuffer = !toggle;
|
||||||
|
else
|
||||||
|
config->nobuffer = toggle;
|
||||||
break;
|
break;
|
||||||
case 'O': /* --remote-name */
|
case 'O': /* --remote-name */
|
||||||
if(subletter == 'a') { /* --remote-name-all */
|
if(subletter == 'a') { /* --remote-name-all */
|
||||||
|
Loading…
Reference in New Issue
Block a user