I mean if length1 != length2 then (array1 == array2 && offset1 == offset2) is still true and this returns 0.