aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/pg_lfind.h
diff options
context:
space:
mode:
authorJohn Naylor <john.naylor@postgresql.org>2022-08-29 17:25:59 +0700
committerJohn Naylor <john.naylor@postgresql.org>2022-08-29 17:44:35 +0700
commitc6a43c25a8ba1a825588f7af25a7173f2e66ce8d (patch)
tree38f905124f4ad8aed3fabe82457868a6d55af66a /src/include/port/pg_lfind.h
parent82739d4a80f2eeb2f96b56477bb04e463ea24800 (diff)
downloadpostgresql-c6a43c25a8ba1a825588f7af25a7173f2e66ce8d.tar.gz
postgresql-c6a43c25a8ba1a825588f7af25a7173f2e66ce8d.zip
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
Diffstat (limited to 'src/include/port/pg_lfind.h')
-rw-r--r--src/include/port/pg_lfind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/port/pg_lfind.h b/src/include/port/pg_lfind.h
index d575e733d34..0625cac6b59 100644
--- a/src/include/port/pg_lfind.h
+++ b/src/include/port/pg_lfind.h
@@ -151,7 +151,7 @@ pg_lfind32(uint32 key, uint32 *base, uint32 nelem)
result = vector32_or(tmp1, tmp2);
/* see if there was a match */
- if (vector8_is_highbit_set((Vector8) result))
+ if (vector32_is_highbit_set(result))
{
Assert(assert_result == true);
return true;