]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Remove implicit cast from 'void *'
authorJohn Naylor <john.naylor@postgresql.org>
Wed, 2 Jul 2025 04:51:10 +0000 (11:51 +0700)
committerJohn Naylor <john.naylor@postgresql.org>
Wed, 2 Jul 2025 04:51:10 +0000 (11:51 +0700)
commit9adb58a3ccb5ad28e773684db33ffcb1ebbd5ef1
tree589536e9186a3e191cfb4c88d6b62787e91d53a8
parent3369a3b49b0bc0a4205062e45623af297240c8c6
Remove implicit cast from 'void *'

Commit e2809e3a101 added code to a header which assigns a pointer
to void to a pointer to unsigned char. This causes build errors for
extensions written in C++. Fix by adding an explicit cast.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CANWCAZaCq9AHBuhs%3DMx7Gg_0Af9oRU7iAqr0itJCtfmsWwVmnQ%40mail.gmail.com
Backpatch-through: 18
src/include/port/pg_crc32c.h