math/g-bin.c, math/g-prime.c: Fix type incompatibility.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 22 Apr 2017 19:15:30 +0000 (20:15 +0100)
commitb919de21f71b408ce5c908f8cd3ec3c3338996aa
tree77d6ace88ab95174ec0cc46d748fd8fc9b5a19fc
parenteb867836b08bab8a2a8e4bca3733994cbc83eb1c
math/g-bin.c, math/g-prime.c: Fix type incompatibility.

Callers of the abstract group API expect to pass in a pointer-to-
structure.  The binary and prime group implementations expected a
pointer-to-pointer, which looks different.  Change the way these work,
so that the group element is a structure holding a pointer, rather than
just a bare pointer.  This doesn't make any difference on targets with
sane ABIs, but it fixes a potentially nasty problem on weirder
platforms.
math/g-bin.c
math/g-prime.c
math/group-guts.h