Skip to content

Commit

Permalink
Add unneeded parentheses to keep clang happy
Browse files Browse the repository at this point in the history
  • Loading branch information
apmasell committed Feb 21, 2014
1 parent 7078dbc commit 94426f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fastq.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static bool stream_next_seq(
LOGV(PANDA_DEBUG_FILE, PANDA_CODE_ID_PARSE_FAILURE, "%s", buffer);
return false;
}
if (!panda_seqid_equal(id, &rid) || format != PANDA_IDFMT_SRA && rdir == fdir) {
if (!panda_seqid_equal(id, &rid) || (format != PANDA_IDFMT_SRA && rdir == fdir)) {
LOG(PANDA_DEBUG_FILE, PANDA_CODE_NOT_PAIRED);
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion plugin_min_phred.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ OPEN {
}

value = strtol(args, &endptr, 10);
if (endptr != NULL && *endptr != '\0' || value < 0 || value > 127) {
if ((endptr != NULL && *endptr != '\0') || value < 0 || value > 127) {
panda_log_proxy_write_str(logger, "PHRED score must be a number between 0 and 127.\n");
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion plugin_min_readqscore.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ OPEN {
}

value = strtol(args, &endptr, 10);
if (endptr != NULL && *endptr != '\0' || value < 0) {
if ((endptr != NULL && *endptr != '\0') || value < 0) {
panda_log_proxy_write_str(logger, "Read Q score must be a number greater than 0.\n");
return false;
}
Expand Down

0 comments on commit 94426f9

Please sign in to comment.