diff --git a/bazaar/plugin/gdal/port/cpl_hash_set.cpp b/bazaar/plugin/gdal/port/cpl_hash_set.cpp index 0f109faa8..13779840d 100644 --- a/bazaar/plugin/gdal/port/cpl_hash_set.cpp +++ b/bazaar/plugin/gdal/port/cpl_hash_set.cpp @@ -379,7 +379,11 @@ int CPLHashSetRemove(CPLHashSet* set, const void* elt) unsigned long CPLHashSetHashPointer(const void* elt) { +#ifdef PLATFORM_POSIX + return (unsigned long)(GUIntBig) elt; +#else return (unsigned long)(GUIntBig) (uintptr_t)elt; +#endif } /************************************************************************/