]> git.tdb.fi Git - libs/core.git/blobdiff - source/regex.cpp
Add missing includes
[libs/core.git] / source / regex.cpp
index 48fe4a7c3422fb027c40481d1f7d39b8fc7010d3..a1babf46d019b77a1db433a92ed447a0fbd2d6a2 100644 (file)
@@ -4,7 +4,9 @@ This file is part of libmspstrings
 Copyright © 2007 Mikko Rasa
 Distributed under the LGPL
 */
+
 #include <stack>
+#include <limits>
 #include <msp/core/except.h>
 #include "formatter.h"
 #include "regex.h"
@@ -306,7 +308,7 @@ Regex::Code Regex::parse_brackets(const string &str, string::const_iterator &ite
        }
 
        string::const_iterator end=iter;
-       for(; (end!=str.end() && (end==iter || *end!=']')); ++end);
+       for(; (end!=str.end() && (end==iter || *end!=']')); ++end) ;
        if(end==str.end())
                throw InvalidParameterValue("Unmatched '['");