Fix strict aliasing violation

Credit nuclear mistake
https://github.com/VanirAOSP/platform_device_samsung_tuna/commit/832ee93ee9db68602adfbab8b8973b581e8aab1f

Change-Id: I93a4c2c3be5e3cbe5ccb151419ba86c111169338