Perl Module: Avoid forcing scalar value into a pointer. 20120912030512/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Wed, 12 Sep 2012 07:26:21 +0000 (09:26 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 12 Sep 2012 07:26:21 +0000 (09:26 +0200)
commit883d4d1310137ca2cb94919b3cc6b2917ff38202
tree1dc2c006a253471fb55c10a52aa31532666dfa08
parentc091e5bdc9621f851c800c9a68eb3fd7505e3358
Perl Module: Avoid forcing scalar value into a pointer.

The code fragment:  struct dictionary *dict = (void *) SvIV (dict_sv);
is dangerous.  This fix uses the properl Perl XS mechanism to get
the pointer and the scalar associated with the dictionary.

Reviewed-By: Ben Pfaff
perl-module/PSPP.xs