diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-12-31 00:06:24 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-12-31 00:06:24 +0000 |
commit | f1982b0a19737d9023285c724de64f93b66c4045 (patch) | |
tree | 3cf53a365527607337b48513b624870cfc0fcfb3 | |
parent | 7e1f5e2e0b084e63bad0077872813e248e07a5cb (diff) | |
download | cpython-f1982b0a19737d9023285c724de64f93b66c4045.tar.gz |
Fix SF #639945, 64-bit bug on AIX
I can't test this on the snake farm (no aix box is working).
This change works for the submitter seems correct.
Can anybody test this on 32- and 64- bit AIX?
-rw-r--r-- | Python/dynload_aix.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/dynload_aix.c b/Python/dynload_aix.c index bb26c07248..fd380aed0e 100644 --- a/Python/dynload_aix.c +++ b/Python/dynload_aix.c @@ -77,8 +77,7 @@ aix_getoldmodules(void **modlistptr) -- "libpython[version].a" in case it's a shared lib). */ offset = (unsigned int)ldiptr->ldinfo_next; - ldiptr = (struct ld_info *)((unsigned int) - ldiptr + offset); + ldiptr = (struct ld_info *)((char*)ldiptr + offset); continue; } if ((modptr = (ModulePtr)malloc(sizeof(Module))) == NULL) { @@ -98,7 +97,7 @@ aix_getoldmodules(void **modlistptr) prevmodptr->next = modptr; prevmodptr = modptr; offset = (unsigned int)ldiptr->ldinfo_next; - ldiptr = (struct ld_info *)((unsigned int)ldiptr + offset); + ldiptr = (struct ld_info *)((char*)ldiptr + offset); } while (offset); free(ldibuf); return 0; |