hashing: always use signed chars
authorRyan Lortie <desrt@desrt.ca>
Mon, 12 Sep 2011 12:06:13 +0000 (08:06 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 12 Sep 2011 12:12:44 +0000 (08:12 -0400)
commit92652ac79177bcdced5f01122debb50eabdb3e2c
tree5ba761e3661af847ee328a281b8f684f7ed338e6
parenta5dd6fcc4f46a322cc547a5fcfa1b52cbc5ec6d6
hashing: always use signed chars

Our hashing of non-ASCII strings was undefined due to the fact that
'char' is signed on some platforms, unsigned on others.  Always use a
signed char.

Discovered by Alexander Larsson.

https://bugzilla.gnome.org/show_bug.cgi?id=658806
gvdb-builder.c
gvdb-reader.c