Resolved warning in implicit integer casting