mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 19:31:02 -08:00
* fns.c (sxhash): Redo loop for clarity and to avoid wraparound warning.
This commit is contained in:
parent
0bc0b309f6
commit
8cd55cb48a
2 changed files with 4 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
2011-04-03 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* fns.c (substring_both): Remove var that is set but not used.
|
||||
(sxhash): Redo loop for clarity and to avoid wraparound warning.
|
||||
|
||||
* eval.c (funcall_lambda): Rename local to avoid shadowing.
|
||||
|
||||
|
|
|
|||
|
|
@ -4219,9 +4219,9 @@ sxhash (Lisp_Object obj, int depth)
|
|||
{
|
||||
double val = XFLOAT_DATA (obj);
|
||||
unsigned char *p = (unsigned char *) &val;
|
||||
unsigned char *e = p + sizeof val;
|
||||
for (hash = 0; p < e; ++p)
|
||||
hash = SXHASH_COMBINE (hash, *p);
|
||||
size_t i;
|
||||
for (hash = 0, i = 0; i < sizeof val; i++)
|
||||
hash = SXHASH_COMBINE (hash, p[i]);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue