Fix build when vec==float3.