Made the types used in the sum_buf and sum_struct structures consistent