Use parens after if.

I'm surprised this built with gcc before.

Fixes Issue #150.

Change-Id: I24d2957783c66ad53d5b532a4e930349a2059a97
This commit is contained in:
Tim Newsome 2017-12-21 12:43:22 -08:00
parent f13093fff7
commit fa385bdcd5
1 changed files with 1 additions and 1 deletions

View File

@ -1200,7 +1200,7 @@ COMMAND_HANDLER(riscv_set_expose_csrs)
unsigned high = 0; unsigned high = 0;
for (unsigned i = 0; i == 0 || CMD_ARGV[0][i-1]; i++) { for (unsigned i = 0; i == 0 || CMD_ARGV[0][i-1]; i++) {
char c = CMD_ARGV[0][i]; char c = CMD_ARGV[0][i];
if isspace(c) { if (isspace(c)) {
// Ignore whitespace. // Ignore whitespace.
continue; continue;
} }