[Commits] [wesnoth/wesnoth] eb974a: Fix signed/unsigned comparisons in text serializat...

GitHub noreply at github.com
Tue Feb 6 08:49:59 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: eb974afa151a5e1fe359e088d84ffccfd7fff1d0
      https://github.com/wesnoth/wesnoth/commit/eb974afa151a5e1fe359e088d84ffccfd7fff1d0
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2018-02-06 (Tue, 06 Feb 2018)

  Changed paths:
    M src/tests/test_serialization.cpp

  Log Message:
  -----------
  Fix signed/unsigned comparisons in text serialization unit tests

Comparing signed and unsigned numbers can result in a negative number
matching a positive one, which is why compilers emit a warning about it.

See boostorg/test#129. I originally missed that the issue was in our code.





More information about the Commits mailing list