From 9443267717cf0ea2278f800127db7fd9e962650f Mon Sep 17 00:00:00 2001 From: YRabbit Date: Fri, 2 Jul 2021 14:58:17 +1000 Subject: [PATCH] Syntax Signed-off-by: YRabbit --- gowin/arch.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gowin/arch.cc b/gowin/arch.cc index 63277438..8dc5657c 100644 --- a/gowin/arch.cc +++ b/gowin/arch.cc @@ -487,13 +487,13 @@ void Arch::read_cst(std::istream &in) std::regex portre = std::regex("IO_PORT +\"([^\"]+)\" +([^ =;]+)=([^ =;]+) *;.*"); std::smatch match; std::string line; - boolean io_loc; + bool io_loc; while (!in.eof()) { std::getline(in, line); io_loc = true; if (!std::regex_match(line, match, iobre)) { // empty line or comment - if (line.empty()) == 0) { + if (line.empty() == 0) { continue; } else { if (!std::regex_match(line, match, portre)) { @@ -525,7 +525,7 @@ void Arch::read_cst(std::istream &in) it->second->attrs[IdString(ID_BEL)] = bel; } else { // IO_PORT attr=value // XXX - log_info("XXX port attr found %s=%s\n", match[2], match[3]); + log_info("XXX port attr found %s=%s\n", match.str(2).c_str(), match.str(3).c_str()); } } }