fix offw computation in readPtr() for negative val offsets (val<0 does happen, was causing data loss before fix).