bug fix for atomic adds/subtracts on pointers