fix undefined behavior (sequence point) of TypeDeduction

Signed-off-by: Eric Zhiqiang Ma <zma@ericzma.com>