diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-12-31 00:06:24 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-12-31 00:06:24 (GMT) |
commit | 7b8e35ed7d8564a977c1600d452ec6e323c6997a (patch) | |
tree | 77837c6b84ebc3d51b39bb6c9dccef6d7464ac0a /Python/dynload_aix.c | |
parent | d8b5e3fda1d82dfc1f56a31e48124ff4e5a02bdc (diff) | |
download | cpython-7b8e35ed7d8564a977c1600d452ec6e323c6997a.zip cpython-7b8e35ed7d8564a977c1600d452ec6e323c6997a.tar.gz cpython-7b8e35ed7d8564a977c1600d452ec6e323c6997a.tar.bz2 |
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?
Diffstat (limited to 'Python/dynload_aix.c')
-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 bb26c07..fd380ae 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; |