Fix broken cast on MSVC

John Naylor <john.naylor@postgresql.org>

Commit: c6a43c25a8ba1a825588f7af25a7173f2e66ce8d
Author: John Naylor <john.naylor@postgresql.org>
Date: 2022-08-29T10:44:35Z
Releases: 16.0
Fix broken cast on MSVC

Per buildfarm animal drongo, casting a vector type to the same type
causes a compile error. We still need the cast on ARM64, so invent a
wrapper function that does the casting only where necessary.

Discussion: https://www.postgresql.org/message-id/CAFBsxsEouaTwbmpqV%2BEW2%3DwFbhw2vHRe26NQTRcd0%3DNaOFDy7A%40mail.gmail.com

Files

PathChange+/−
src/include/port/pg_lfind.h modified +1 −1
src/include/port/simd.h modified +22 −0

Discussion