summaryrefslogtreecommitdiff
path: root/THANKS
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2018-08-18 16:37:47 +0200
committerAkim Demaille <akim.demaille@gmail.com>2018-08-18 18:07:43 +0200
commitf348522005fc3b33b2aa8de9aa27f3a203a56dad (patch)
tree495a339182e1f067d26c87fd6bd8c192b5933cff /THANKS
parente866c476fde874f5db22069d1ac73575517cc889 (diff)
downloadbison-f348522005fc3b33b2aa8de9aa27f3a203a56dad.tar.gz
C++: fix portability issue with MSVC 2017
Visual Studio issues a C4146 warning on '-static_cast<unsigned>(rhs)'. The code is weird, probably to cope with INT_MIN. Let's go back to using std::max (whose header is still included in position.hh...) like originally, but with the needed casts. Reported by 長田偉伸, and with help from Rici Lake. See also http://lists.gnu.org/archive/html/bug-bison/2013-02/msg00000.html and commit 75ae8299840bbd854fa2474d38402bbb933c6511. * data/location.cc (position::add_): Take min as an int. Use std::max. While here, get rid of a couple of useless inlines.
Diffstat (limited to 'THANKS')
-rw-r--r--THANKS1
1 files changed, 1 insertions, 0 deletions
diff --git a/THANKS b/THANKS
index 93e72fe1..48b4ec85 100644
--- a/THANKS
+++ b/THANKS
@@ -172,6 +172,7 @@ Wolfram Wagner ww@mpi-sb.mpg.de
Wwp subscript@free.fr
xolodho xolodho@gmail.com
Zack Weinberg zack@codesourcery.com
+長田偉伸 cbh34680@iret.co.jp
Many people are not named here because we lost track of them. We
thank them! Please, help us keeping this list up to date.