diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-10-10 18:38:40 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-10-10 18:38:40 +0200 |
commit | 20d85f20dbb16a1c47f7993da06f5b9abac1d09d (patch) | |
tree | f909140c9df19b63c28791b61e148eb4e4e7e1ce /kernel | |
parent | 54bf3a95dd859ac1811a5265ad45f9eb596de3db (diff) | |
download | yosys-20d85f20dbb16a1c47f7993da06f5b9abac1d09d.tar.gz yosys-20d85f20dbb16a1c47f7993da06f5b9abac1d09d.tar.bz2 yosys-20d85f20dbb16a1c47f7993da06f5b9abac1d09d.zip |
Fixed next_token()
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/yosys.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc index 96fe5446d..08f75df7b 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -87,12 +87,12 @@ std::string next_token(std::string &text, const char *sep) { size_t pos_begin = text.find_first_not_of(sep); - if (pos_begin == string::npos) + if (pos_begin == std::string::npos) pos_begin = text.size(); size_t pos_end = text.find_first_of(sep, pos_begin); - if (pos_end == string::npos) + if (pos_end == std::string::npos) pos_end = text.size(); std::string token = text.substr(pos_begin, pos_end-pos_begin); |