From fa385bdcd5c2825dc625d6a8f6678108146e9866 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 21 Dec 2017 12:43:22 -0800 Subject: Use parens after if. I'm surprised this built with gcc before. Fixes Issue #150. Change-Id: I24d2957783c66ad53d5b532a4e930349a2059a97 --- src/target/riscv/riscv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index 2f1084f..0af5032 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -1200,7 +1200,7 @@ COMMAND_HANDLER(riscv_set_expose_csrs) unsigned high = 0; for (unsigned i = 0; i == 0 || CMD_ARGV[0][i-1]; i++) { char c = CMD_ARGV[0][i]; - if isspace(c) { + if (isspace(c)) { // Ignore whitespace. continue; } -- cgit v1.1