On Aug 30, 8:13 pm, Martin Albrecht <[EMAIL PROTECTED]>
wrote:
> > Now where I see the problem: On a box with more than 2GB of RAM calloc
> > might return a pointer that lies above the range of signed int. Then
> > the cast to (int*) returns a pointer to the allocated memory module
> > 2^31.
>
> The size of an "int" (mod 2^31) is not relevant for an "int *" which is of
> size sizeof(void*) in any case. It is a pointer to an "int" not something
> treated like an "int".
>
Yeah, I looked it up a minute after I hit send and I started getting
doubts and come to the same conclusion. Sorry for the wrong lead.
> Martin
>
Cheers,
Michael
> --
> name: Martin Albrecht
> _pgp:http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
> _www:http://www.informatik.uni-bremen.de/~malb
> _jab: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---