View Single Post
Old 2012-10-28, 05:13   #6
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by jcrombie View Post
Another problem is the casts:

Code:
 j=(GEN)100000;
 k=(GEN)200000;
You are assigning integers into pointers here. I really don't know much about pari, but the proper coding techniques are to be found in the "libpari.dvi" documentation.

Cheers

Ah, good catch -- I was just looking at the code that gp2c generated. Those should be
Code:
j = utoipos(100000);
k = utoipos(200000);
CRGreathouse is offline   Reply With Quote