[Commits] [wesnoth/wesnoth] 73b1d7: cast to unsigned integers before bitshifting

GitHub noreply at github.com
Fri Feb 24 00:10:59 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 73b1d79691b438ee3d0b6ae1ba481dfef94decfa
      https://github.com/wesnoth/wesnoth/commit/73b1d79691b438ee3d0b6ae1ba481dfef94decfa
  Author: gfgtdf <daniel.gfgtdf at gmail.com>
  Date:   2017-02-24 (Fri, 24 Feb 2017)

  Changed paths:
    M src/map/location.cpp

  Log Message:
  -----------
  cast to unsigned integers before bitshifting

bitshift on signed values is undefined in c++ standard.

http://gna.org/bugs/?25219





More information about the Commits mailing list