Commit 32bfb2d5 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(sxhash): As far as possible, merge calculation of

hash code for symbols and strings.
parent 4211ee7d
......@@ -5007,15 +5007,14 @@ sxhash (obj, depth)
hash = XUINT (obj);
break;
case Lisp_Symbol:
hash = sxhash_string (SDATA (SYMBOL_NAME (obj)),
SCHARS (SYMBOL_NAME (obj)));
break;
case Lisp_Misc:
hash = XUINT (obj);
break;
case Lisp_Symbol:
obj = SYMBOL_NAME (obj);
/* Fall through. */
case Lisp_String:
hash = sxhash_string (SDATA (obj), SCHARS (obj));
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment