Added sizeof shift bug and unsigned arithmetic bug