fundamental: rework IN_SET() to require at least three arguments
If less than three parameters are passed a simple comparison is the better choice. Lo and behold this found two pretty bad typos.
This commit is contained in:
+1
-1
@@ -1249,7 +1249,7 @@ typedef enum EndOfLineMarker {
|
||||
|
||||
static EndOfLineMarker categorize_eol(char c, ReadLineFlags flags) {
|
||||
|
||||
if (!IN_SET(flags, READ_LINE_ONLY_NUL)) {
|
||||
if (!FLAGS_SET(flags, READ_LINE_ONLY_NUL)) {
|
||||
if (c == '\n')
|
||||
return EOL_TEN;
|
||||
if (c == '\r')
|
||||
|
||||
Reference in New Issue
Block a user