string-hash and string-ci-hash now return nonnegative fixnums only.
This commit is contained in:
parent
57de27827a
commit
8adc203ded
|
@ -1 +1 @@
|
||||||
1847
|
1848
|
||||||
|
|
|
@ -52,7 +52,7 @@ compute_hash(ikptr str){
|
||||||
h = h + (h << 3);
|
h = h + (h << 3);
|
||||||
h = h ^ (h >> 11);
|
h = h ^ (h >> 11);
|
||||||
h = h + (h << 15);
|
h = h + (h << 15);
|
||||||
return h;
|
return (h >= 0) ? h : (1 - h);
|
||||||
}
|
}
|
||||||
|
|
||||||
ikptr
|
ikptr
|
||||||
|
|
Loading…
Reference in New Issue