Commit 63b6872d authored by Guido van Rossum's avatar Guido van Rossum

Partial(?) 64bit patch (AMK).

parent 10638754
...@@ -216,7 +216,7 @@ writetab(outf, tab, len) ...@@ -216,7 +216,7 @@ writetab(outf, tab, len)
while(len) { while(len) {
r = putlong(outf, *tab++); r = putlong(outf, *tab++);
len -= 4; len--;
} }
return r; return r;
} }
...@@ -229,7 +229,7 @@ readtab(inf, tab, len) ...@@ -229,7 +229,7 @@ readtab(inf, tab, len)
{ {
while(len) { while(len) {
*tab++ = getlong(inf); *tab++ = getlong(inf);
len -= 4; len--;
} }
} }
...@@ -322,8 +322,8 @@ longimagedata(self, args) ...@@ -322,8 +322,8 @@ longimagedata(self, args)
} }
fseek(inf, 512, SEEK_SET); fseek(inf, 512, SEEK_SET);
readtab(inf, starttab, tablen); readtab(inf, starttab, ysize*zsize);
readtab(inf, lengthtab, tablen); readtab(inf, lengthtab, ysize*zsize);
/* check data order */ /* check data order */
cur = 0; cur = 0;
...@@ -655,8 +655,8 @@ longstoimage(self, args) ...@@ -655,8 +655,8 @@ longstoimage(self, args)
} }
fseek(outf, 512, SEEK_SET); fseek(outf, 512, SEEK_SET);
goodwrite *= writetab(outf, starttab, tablen); goodwrite *= writetab(outf, starttab, ysize*zsize);
goodwrite *= writetab(outf, lengthtab, tablen); goodwrite *= writetab(outf, lengthtab, ysize*zsize);
if (goodwrite) { if (goodwrite) {
Py_INCREF(Py_None); Py_INCREF(Py_None);
retval = Py_None; retval = Py_None;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment