libhwcomposer: repair aliasing violation

Change-Id: I9e0b46c18696275ec48ff8f760836d8b256100f7