summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/dynload_aix.c5
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;