Hi Samuel,

I guess t_INT is the 64-bit sign integer in the pari library, which is 
written in C. It means the positive size is 63 bits. The number 2^63 
corresponds to -1 and pari raises an error. The following code works fine.

sage: p = previous_prime(2^64)
sage: F.<x> = GF(p^2)
sage: x * (2**63 - 1)


Kind regards,
Oleksandr

On Saturday, July 26, 2014 5:39:42 AM UTC+2, Samuel Neves wrote:
>
> I seem to have run across a potential bug on Sage:
>
> p = previous_prime(2^64)
>> F.<x> = GF(p^2)
>> x * 2**63
>>
>>
> throws a "overflow in t_INT-->long assignment" exception creating the 
> element x * 2**63. Reproduced here:
>
>
> https://sagecell.sagemath.org/?z=eJwrULBVKChKLcvMLy2OLyjKzE3VMIozM9Hk5XLTs6mwA8q6u2kUxBkBBSq0jLS0zIwBihANsg==&lang=sage
>

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

Reply via email to