diff options
author | Tim Callahan <tcal@google.com> | 2020-12-16 20:07:56 -0800 |
---|---|---|
committer | Tim Callahan <tcal@google.com> | 2020-12-16 20:07:56 -0800 |
commit | c967f8e43496973b667c4a962a62b9a04e7c987b (patch) | |
tree | 2dd1ea7ac344c61fc10e100396cecf6d6741616c /ice40 | |
parent | c8cb9895a3cdf72d95e0a2cbf7a7dc0f5373f9fe (diff) | |
download | nextpnr-c967f8e43496973b667c4a962a62b9a04e7c987b.tar.gz nextpnr-c967f8e43496973b667c4a962a62b9a04e7c987b.tar.bz2 nextpnr-c967f8e43496973b667c4a962a62b9a04e7c987b.zip |
Use std::string::find(char c) when searching for a single character.
Signed-off-by: Tim Callahan <tcal@google.com>
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/pcf.cc | 2 |
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); |