Initialize variable to suitable default
Ensure the bit shift operator does not operate on undefined values
Proper allocation and usage of array ivar