YAMBi: Use counter type of Bison parser
Before this update compiling the code would produce a warning about
comparisons between integers with different signs.
@@ -26,6 +26,7 @@ using kdb::Key;
using kdb::KeySet;
using yambi::Parser;
+using yambi::position;
// -- Functions ----------------------------------------------------------------
@@ -86,7 +87,7 @@ string visualizeError (location_type const & location, string const & input, str
{
string::size_type start = 0;
string::size_type end = 0;
- for (size_t currentLine = 1; currentLine <= location.begin.line; currentLine++)
+ for (position::counter_type currentLine = 1; currentLine <= location.begin.line; currentLine++)
{
size_t offset = (end == 0 ? 0 : 1);
start = end + offset;
