Hi Brian,

I understand  now why you don't get me, but I'm also confused. I assumed
the function prototype of mpz_set_si was as the gmp one void mpz_set_si
(mpz_t rop, signed long int op), but it's not, it's void mpz_set_si (mpz_t
rop, signed long int op) on 32 bit and void mpz_set_si (mpz_t rop, signed
long long int op) on 64 bit.

Need to take that into account.

Cheers,

d.


On 14 August 2013 15:31, Brian Gladman <b...@gladman.plus.com> wrote:

> On 14/08/2013 12:26, degski wrote:
> > Hi Brian,
> >
> > I included the header in an existing project, which already had <cstdint>
> > indeed, did your test, and hoppa.
> >
> > Isn't the base of the problem in the fact that the overloads of
> >
> > void *mpz_set_ui* (mpz_t rop, unsigned long int op)
> > void *mpz_set_si* (mpz_t rop, signed long int op)
> >
> > have signatures with (unsigned) long long int, while signatures of the
> > functions have *unsigned long int.*
>
> Hi Degski,
>
> This is the bit I don't understand.  Both mpz_set_ui and mpz_set_si  are
> C functions defined in mpir.h so the concept of overloading surely
> doesn't apply to them?
>
>   Brian
>
> --
> You received this message because you are subscribed to the Google Groups
> "mpir-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mpir-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to mpir-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/mpir-devel.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
Sign the petition:
https://optin.stopwatching.us/<https://optin.stopwatching.us/>

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mpir-devel+unsubscr...@googlegroups.com.
To post to this group, send email to mpir-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to