Commit d3420eb3 authored by Marius Gerbershagen's avatar Marius Gerbershagen

ecl_equal: fix comparison of displaced bitvectors

    Fixes #445
parent ed9ebb93
......@@ -377,8 +377,8 @@ ecl_equal(register cl_object x, cl_object y)
ox = x->vector.offset;
oy = y->vector.offset;
for (i = 0; i < x->vector.fillp; i++)
if((x->vector.self.bit[(i+ox)/8] & (0200>>(i+ox)%8))
!=(y->vector.self.bit[(i+oy)/8] & (0200>>(i+oy)%8)))
if(((x->vector.self.bit[(i+ox)/8] & (0200>>(i+ox)%8)) << ox)
!=((y->vector.self.bit[(i+oy)/8] & (0200>>(i+oy)%8)) << oy))
return(FALSE);
return(TRUE);
}
......
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