Simplify the boolean expression.
This commit is contained in:
parent
3d2194fb0a
commit
61d13751b8
@ -509,7 +509,7 @@ int main(int argc, char** argv) {
|
|||||||
FLAGS_page_size = n;
|
FLAGS_page_size = n;
|
||||||
} else if (sscanf(argv[i], "--compression=%d%c", &n, &junk) == 1 &&
|
} else if (sscanf(argv[i], "--compression=%d%c", &n, &junk) == 1 &&
|
||||||
(n == 0 || n == 1)) {
|
(n == 0 || n == 1)) {
|
||||||
FLAGS_compression = n == 1;
|
FLAGS_compression = (n == 1);
|
||||||
} else if (strncmp(argv[i], "--db=", 5) == 0) {
|
} else if (strncmp(argv[i], "--db=", 5) == 0) {
|
||||||
FLAGS_db = argv[i] + 5;
|
FLAGS_db = argv[i] + 5;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user