diff --git a/network/VerilogNamespace.cc b/network/VerilogNamespace.cc index 48d182a7..6d1542b5 100644 --- a/network/VerilogNamespace.cc +++ b/network/VerilogNamespace.cc @@ -180,7 +180,7 @@ verilogToSta(const char *verilog_name) // Ignore leading '\'. verilog_name = &verilog_name[1]; size_t verilog_name_length = strlen(verilog_name); - if (verilog_name[verilog_name_length - 1] == ' ') + if (isspace(verilog_name[verilog_name_length - 1])) verilog_name_length--; string sta_name; for (size_t i = 0; i < verilog_name_length; i++) {