diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-28 13:57:11 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-28 17:57:26 +0200 |
commit | 45032e22248caf8ba5c90aa1ed34e096a73aa999 (patch) | |
tree | 5b48a71a7a14655a2c150b26b89b7d253fd7df38 /3rdparty/python-console/ParseHelper.cpp | |
parent | 403c2d65a207e47a18198514ff67af5367611ef1 (diff) | |
download | nextpnr-45032e22248caf8ba5c90aa1ed34e096a73aa999.tar.gz nextpnr-45032e22248caf8ba5c90aa1ed34e096a73aa999.tar.bz2 nextpnr-45032e22248caf8ba5c90aa1ed34e096a73aa999.zip |
compile in needed helpers and fix warnings
Diffstat (limited to '3rdparty/python-console/ParseHelper.cpp')
-rw-r--r-- | 3rdparty/python-console/ParseHelper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/3rdparty/python-console/ParseHelper.cpp b/3rdparty/python-console/ParseHelper.cpp index 08f0526a..07616f5d 100644 --- a/3rdparty/python-console/ParseHelper.cpp +++ b/3rdparty/python-console/ParseHelper.cpp @@ -51,7 +51,7 @@ bool ParseHelper::PeekIndent( const std::string& str, Indent* indent ) return false; int nonwhitespaceIndex = -1; - for (int i = 0; i < str.size(); ++i) + for (size_t i = 0; i < str.size(); ++i) { if (!isspace(str[i])) { @@ -151,7 +151,7 @@ bool ParseHelper::buffered( ) const void ParseHelper::flush( ) { std::stringstream ss; - for (int i = 0; i < commandBuffer.size(); ++i ) + for (size_t i = 0; i < commandBuffer.size(); ++i ) { ss << commandBuffer[i] << "\n"; } @@ -188,7 +188,7 @@ void ParseHelper::unsubscribeAll( ) void ParseHelper::broadcast( const ParseMessage& msg ) { // broadcast signal - for (int i = 0; i < listeners.size(); ++i) + for (size_t i = 0; i < listeners.size(); ++i) { if (listeners[i]) { |