Package: flex
Version: latest in git/trunk (2014-08-27)

In the generated file position.hh from line 107-115 I find the following code 
segment:

107    private:
108      /// Compute max(min, lhs+rhs) (provided min <= lhs).
109      static unsigned int add_ (unsigned int lhs, int rhs, unsigned int min)
110      {
111        return (0 < rhs || -static_cast<unsigned int>(rhs) < lhs
112                ? rhs + lhs
113                : min);
114      }
115    };

The static_cast in line 111 is also required in line 112; because of the 
following compiler warning/error:

In file included from /home/andy/git/process/srcGen/location.hh:41:
/home/andy/git/process/srcGen/position.hh:112:17: error: implicit conversion 
changes signedness: 'int' to 'unsigned int' [-Werror,-Wsign-conversion]
              ? rhs + lhs

-- Andreas

Reply via email to