bug-bison
[Top][All Lists]
Advanced

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

position.hh compile error C4146 (VisualStudio 2017)


From: 長田偉伸
Subject: position.hh compile error C4146 (VisualStudio 2017)
Date: Sat, 18 Aug 2018 14:36:38 +0900

[Description]

    I used flex to generate the source code.
    After that, when I compiled using VisualStudio 2017, an error of
C4146 occurred.

    I modified the file containing the error as follows.

        # (original) position.hh:111
              return (0 < rhs || -static_cast<unsigned int>(rhs) < lhs

        # (edited) position.hh:111
              return (0 < rhs || -1 * static_cast<unsigned int>(rhs) < lhs

    I compiled it again and confirmed that no error occurred


[Environment]
    OS: Windows10
        Visual Studio 2017 (C++)

    Version: bison (GNU Bison) 3.0.5


Thank you,



reply via email to

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