This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.18-160-ga3a6c31


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  a3a6c3129f4bdf3f54122355ff8d6843fe40a7ac (commit)
      from  5057e7ce826bb0be3f476408b2ae364042f2a9bb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a3a6c3129f4bdf3f54122355ff8d6843fe40a7ac

commit a3a6c3129f4bdf3f54122355ff8d6843fe40a7ac
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Mon Sep 23 23:03:34 2013 +0000

    Make locale archive hash function architecture-independent.

diff --git a/ChangeLog b/ChangeLog
index a83e5f6..2963c38 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-23  Joseph Myers  <joseph@codesourcery.com>
+
+	* locale/hashval.h (compute_hashval): Interpret bytes of key as
+	unsigned char.
+
 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
 
 	* manual/threads.texi (POSIX Threads): Fix a typo.
diff --git a/locale/hashval.h b/locale/hashval.h
index 737162f..88e7839 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);
 }

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog        |    5 +++++
 locale/hashval.h |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]