Previous 15994 Revisions Next

r9762 Sunday 12th December, 2010 at 09:13:50 UTC by Robbbert
[DEBUGGER] Fixed bug: symlist z80 crashes emulator (from 140u1).
[src/lib/util]tagmap.h

src/lib/util/tagmap.h
r9761r9762
167167   UINT32 hash = (string[0] << 5) + string[1];
168168   char c;
169169
170   string += 2;
171   while ((c = *string++) != 0)
172      hash = ((hash << 5) | (hash >> 27)) + c;
170   if (strlen(string) > 2)
171   {
172      string += 2;
173      while ((c = *string++) != 0)
174         hash = ((hash << 5) | (hash >> 27)) + c;
175   }
176
173177   return hash;
174178}
175179

Previous 15994 Revisions Next


© 1998-2018 The MESS Team