variablespeed: Fix aliasing violation

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