diff options
author | Guido van Rossum <guido@python.org> | 1997-05-22 20:24:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-22 20:24:07 (GMT) |
commit | 0b82fe773fe20b974b2f4c8ca672373cca396c6f (patch) | |
tree | 45edbaddfe69b71e1c57fc32207f9d1fe12cedf6 | |
parent | 23c9446d9ab4b063211327a6f81eddf920c801ca (diff) | |
download | cpython-0b82fe773fe20b974b2f4c8ca672373cca396c6f.zip cpython-0b82fe773fe20b974b2f4c8ca672373cca396c6f.tar.gz cpython-0b82fe773fe20b974b2f4c8ca672373cca396c6f.tar.bz2 |
Partial(?) 64bit patch (AMK).
-rw-r--r-- | Modules/rgbimgmodule.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/rgbimgmodule.c b/Modules/rgbimgmodule.c index d2428d1..18d2776 100644 --- a/Modules/rgbimgmodule.c +++ b/Modules/rgbimgmodule.c @@ -216,7 +216,7 @@ writetab(outf, tab, len) while(len) { r = putlong(outf, *tab++); - len -= 4; + len--; } return r; } @@ -229,7 +229,7 @@ readtab(inf, tab, len) { while(len) { *tab++ = getlong(inf); - len -= 4; + len--; } } @@ -322,8 +322,8 @@ longimagedata(self, args) } fseek(inf, 512, SEEK_SET); - readtab(inf, starttab, tablen); - readtab(inf, lengthtab, tablen); + readtab(inf, starttab, ysize*zsize); + readtab(inf, lengthtab, ysize*zsize); /* check data order */ cur = 0; @@ -655,8 +655,8 @@ longstoimage(self, args) } fseek(outf, 512, SEEK_SET); - goodwrite *= writetab(outf, starttab, tablen); - goodwrite *= writetab(outf, lengthtab, tablen); + goodwrite *= writetab(outf, starttab, ysize*zsize); + goodwrite *= writetab(outf, lengthtab, ysize*zsize); if (goodwrite) { Py_INCREF(Py_None); retval = Py_None; |