Chapman Flack <chap(at)anastigmatix(dot)net> writes:
> - myunion.value = GET_4_BYTES(X);
> + myunion.value = (int32)GET_4_BYTES(X);
Hm. I think it would be better to use DatumGetInt32 here. Arguably,
direct use of GET_4_BYTES and its siblings should only appear in
DatumGetFoo macros.
regards, tom lane