mirror of
https://github.com/curl/curl.git
synced 2026-08-24 19:03:40 +03:00
msvc: drop exception, make BIT() a bitfield with Visual Studio
Add casts to `bool`, or use `bit` type in local variables, where neccessary to avoid MSVC compiler warnings C4242. Note: There may remain places needing the above updates, where not tested in CI, and missed in manual review. Also: - urldata: convert struct field `connect_only` to bitfield to match its counterpart in another struct. - rename curl-specific `bit` type to `curl_bit`. Closes #20142
This commit is contained in:
parent
57ff2d6c91
commit
85c841cb45
32 changed files with 73 additions and 73 deletions
|
|
@ -271,9 +271,9 @@ static bool pop3_is_multiline(const char *cmdline)
|
|||
for(i = 0; i < CURL_ARRAYSIZE(pop3cmds); ++i) {
|
||||
if(curl_strnequal(pop3cmds[i].name, cmdline, pop3cmds[i].nlen)) {
|
||||
if(!cmdline[pop3cmds[i].nlen])
|
||||
return pop3cmds[i].multiline;
|
||||
return (bool)pop3cmds[i].multiline;
|
||||
else if(cmdline[pop3cmds[i].nlen] == ' ')
|
||||
return pop3cmds[i].multiline_with_args;
|
||||
return (bool)pop3cmds[i].multiline_with_args;
|
||||
}
|
||||
}
|
||||
/* Unknown command, assume multi-line for backward compatibility with
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue