Work around strict-aliasing error

Change-Id: I99855a19cf0cfcc55351dc9570fd217f3c53c2ee
Signed-off-by: zwliew <zhaoweiliew@gmail.com>