COMP: fixed warnings from gcc4.1.2, made implicit casts explicit

Change-Id: I61d91404d017b3fea23b0edee9e217e54ec21af5
Merge topic 'release-fix-gcc4.1.2-warnings'

e319ac23 COMP: fixed warnings from gcc4.1.2, made implicit casts explicit