Update of bug #25219 (project wesnoth):

                 Release:                     git => 1.13.5+dev             
        Operating System:                   linux => All                    

    _______________________________________________________

Follow-up Comment #1:


std::size_t hash_value(map_location  const & a){
        std::hash<size_t> h;
        return h( (a.x << 16) ^ a.y );
}


I suppose map location co-ordinates are normally non-negative integers. x and
y are both defined as signed ints and initialised to -1000 by default
(map/location.hpp:63). I don't really know what the hash_value() function is
intending to calculate - wondering if there should be some check if the
co-ordinates are negative and return something else if they are.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to