[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bison-Announce] Bison 3.4.90 released [beta]

From: Frank Heckenbach
Subject: Re: [Bison-Announce] Bison 3.4.90 released [beta]
Date: Fri, 01 Nov 2019 12:22:41 +0100

Akim Demaille wrote:

> Please, torture this beta, and report your mileage!

Using "-Werror -Wold-style-cast", I get the following warning.
Otherwise, it seems to work fine for me.

  In member function 'std::ptrdiff_t yy::TMathParser::stack<T, S>::ssize() 
  error: use of old-style cast to 'std::ptrdiff_t' {aka 'long int'} 

I think this will be fixed by using a simple type conversion (or
otherwise a static_cast) instead of the old-style cast:

  -        return (std::ptrdiff_t) size ();
  +        return std::ptrdiff_t (size ());


reply via email to

[Prev in Thread] Current Thread [Next in Thread]