Update of bug #25079 (project wesnoth):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 
                 Release:                     git => 1.13.5+dev             

    _______________________________________________________

Follow-up Comment #3:


void text_surface::hash()
{
        int h = 0;
        for(const char c : str_) {
                h = ((h << 9) | (h >> (sizeof(int) * 8 - 9))) ^ (c);
    }
        hash_ = h;
}


Seems okay to me, though I'm no expert in hashing functions.

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to