From a3a6c3129f4bdf3f54122355ff8d6843fe40a7ac Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 23 Sep 2013 23:03:34 +0000 Subject: Make locale archive hash function architecture-independent. --- locale/hashval.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'locale/hashval.h') diff --git a/locale/hashval.h b/locale/hashval.h index 737162f6b8..88e7839386 100644 --- a/locale/hashval.h +++ b/locale/hashval.h @@ -37,7 +37,7 @@ compute_hashval (const void *key, size_t keylen) while (cnt < keylen) { hval = (hval << 9) | (hval >> (sizeof hval * CHAR_BIT - 9)); - hval += (hashval_t) *(((char *) key) + cnt++); + hval += (hashval_t) ((const unsigned char *) key)[cnt++]; } return hval != 0 ? hval : ~((hashval_t) 0); } -- cgit 1.4.1