Fix undefined behavior.
Fix undefined behavior.

TSC21/Eigen,ritsu1228/eigen,ROCmSoftwarePlatform/hipeigen,TSC21/Eigen,pasuka/eigen,ROCmSoftwarePlatform/hipeigen,pasuka/eigen,ritsu1228/eigen,ritsu1228/eigen,TSC21/Eigen,ROCmSoftwarePlatform/hipeigen,pasuka/eigen,ROCmSoftwarePlatform/hipeigen,pasuka/eigen,TSC21/Eigen,ritsu1228/eigen,ritsu1228/eigen,pasuka/eigen