Fix AVX2 lane() on Windows

This commit is contained in:
Peter Harris
2021-01-12 15:36:50 +00:00
parent 1d48924a6e
commit e5f7a2bab7
+1 -1
View File
@@ -98,7 +98,7 @@ struct vfloat8
template <int l> ASTCENC_SIMD_INLINE float lane() const
{
#ifdef _MSC_VER
return m.m256_f32[i];
return m.m256_f32[l];
#else
union { __m256 m; float f[8]; } cvt;
cvt.m = m;