fix for pointer-arith warnings