IV a = SvIV(SvRV(*res));
I think you don't want SvRV() here, as your *res already is an SV* holding a simple integer (returned by av_fetch()), which is what SvIV() wants. In other words, AFAICT, *res doesn't hold an RV (a Perl reference), so no need to dereference it.
In reply to Re: simple XS
by almut
in thread simple XS
by spx2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |