aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ice40/pcf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ice40/pcf.cc b/ice40/pcf.cc
index 8cf5db39..867f6165 100644
--- a/ice40/pcf.cc
+++ b/ice40/pcf.cc
@@ -37,7 +37,7 @@ bool apply_pcf(Context *ctx, std::string filename, std::istream &in)
int lineno = 0;
while (std::getline(in, line)) {
lineno++;
- size_t cstart = line.find("#");
+ size_t cstart = line.find('#');
if (cstart != std::string::npos)
line = line.substr(0, cstart);
std::stringstream ss(line);