[PATCH openEuler-1.0-LTS 050/316] time: Prevent undefined behaviour in timespec64_to_ns()