Fix 'ulong undefined' compilation error on AIX
authorPeter Wang <novalazy@gmail.com>
Thu, 6 Jun 2019 02:48:17 +0000 (12:48 +1000)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 6 Jun 2019 06:59:45 +0000 (09:59 +0300)
* include/gc.h [_AIX] (GC_DATASTART, GC_DATAEND): Remove cast to ulong.

include/gc.h

index 4afcf75..9a3a278 100644 (file)
@@ -1946,8 +1946,8 @@ GC_API int GC_CALL GC_get_force_unmap_on_gcollect(void);
         /* Required at least if GC is in a DLL.  And doesn't hurt. */
 #elif defined(_AIX)
   extern int _data[], _end[];
-# define GC_DATASTART ((void *)((ulong)_data))
-# define GC_DATAEND ((void *)((ulong)_end))
+# define GC_DATASTART ((void *)_data)
+# define GC_DATAEND ((void *)_end)
 # define GC_INIT_CONF_ROOTS GC_add_roots(GC_DATASTART, GC_DATAEND)
 #elif (defined(HOST_ANDROID) || defined(__ANDROID__)) \
       && defined(IGNORE_DYNAMIC_LOADING)