add xor for 0.5 compatibility

This commit is contained in:
kalmar 2017-07-05 13:56:01 +02:00
parent 1bfbd574ee
commit 613ec172bd
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,8 @@ convert{T<:GSymbol}(::Type{GWord{T}}, s::T) = GWord{T}(T[s])
#
###############################################################################
xor(a,b) = a $ b
function hash(W::GWord, h::UInt)
W.modified && reduce!(W)
return xor(W.savedhash, h)