gpgscm: Fix compact vector encoding.
authorJustus Winter <justus@g10code.com>
Fri, 7 Apr 2017 10:27:47 +0000 (12:27 +0200)
committerJustus Winter <justus@g10code.com>
Fri, 7 Apr 2017 10:27:47 +0000 (12:27 +0200)
commitbf8b5e9042b3d86d419b2ac1987a9298c9d21500
tree120c9946a47bc17a3bad06c4a6f8a6a43d0cd5a8
parent9c9fde1495be4accf4526a2626110876fd9d788d
gpgscm: Fix compact vector encoding.

* tests/gpgscm/scheme-private.h (struct cell): Use uintptr_t for
'_flags'.  This way, '_flags' has the size of a machine word.
--

The compact vector representation introduced in 49e2ae65 requires that
we can tell apart pointers and type flags.  This did not work on
64-bit big-endian architectures.

Fixes a crash on 64-bit big-endian architectures.

Hat-tip-to: gniibe
Fixes-commit: 49e2ae65e892f93be7f87cfaae3392b50a99e4b1
Signed-off-by: Justus Winter <justus@g10code.com>
tests/gpgscm/scheme-private.h