Le 29/01/2012 13:54, Dima Pasechnik a écrit :


On Sunday, 29 January 2012 00:34:28 UTC+8, Snark wrote:

    Le 29/01/2012 13:38, Dima Pasechnik a �crit :
     > and then it does (line 1750):
     >
     > cdef char *buf = <char*>gdImagePngPtr(im, &size)
     > data = [buf[i] for i in range(size)]
     >
     > and this data goes into the pickle. No wonder it gets different on
     > different platforms!

    Would that also be a case of just using uint8_t and everything will
    be ok?

rather, int8_t (char = unsigned char on ARM, right?)
Cause int8_t would retain the compatibility with the existing pickles
created on x86.

Fair point. Are you working on it?

I guess we should write a sage-devel post asking people to look at other
cases of this they are aware about....

Well, that won't hurt. At least the doctest didn't seem to uncover other such cases.

Snark on #sagemath

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to