[Commits] [wesnoth/wesnoth] fc3943: color_t: Implement operator+= and handle overflow

GitHub noreply at github.com
Sat Nov 26 21:37:14 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: fc39435f3951d963f7b244cd19b33dc454dcf826
      https://github.com/wesnoth/wesnoth/commit/fc39435f3951d963f7b244cd19b33dc454dcf826
  Author: Celtic Minstrel <CelticMinstrel at users.noreply.github.com>
  Date:   2016-11-26 (Sat, 26 Nov 2016)

  Changed paths:
    M src/sdl/color.hpp

  Log Message:
  -----------
  color_t: Implement operator+= and handle overflow

This implements the behaviour clearly intended by the previous operator+
implementation, which would not have worked due to overflow of the
uint8_t components.





More information about the Commits mailing list