[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,
- position.hh compile error C4146 (VisualStudio 2017),
長田偉伸 <=
- Re: position.hh compile error C4146 (VisualStudio 2017), Akim Demaille, 2018/08/18
- Message not available
- Message not available
- Re: position.hh compile error C4146 (VisualStudio 2017), 長田偉伸, 2018/08/18
- Re: position.hh compile error C4146 (VisualStudio 2017), Rici Lake, 2018/08/18
- Re: position.hh compile error C4146 (VisualStudio 2017), Akim Demaille, 2018/08/18
- Re: position.hh compile error C4146 (VisualStudio 2017), Rici Lake, 2018/08/18
- Re: position.hh compile error C4146 (VisualStudio 2017), Hans Åberg, 2018/08/19