math.hashcodes: fix complex number-hashcodes.
parent
3b8164da32
commit
4d9d980e22
|
@ -46,5 +46,4 @@ M: float number-hashcode ( x -- h )
|
||||||
|
|
||||||
M: complex number-hashcode ( x -- h )
|
M: complex number-hashcode ( x -- h )
|
||||||
>rect [ number-hashcode ] bi@ 1000003 * +
|
>rect [ number-hashcode ] bi@ 1000003 * +
|
||||||
[ M 1 - bitand ] [ M bitand ] bi -
|
cell-bits on-bits bitand dup -1 = [ drop -2 ] when ;
|
||||||
dup -1 = [ drop -2 ] when ;
|
|
||||||
|
|
Loading…
Reference in New Issue