Skip to content

Commit

Permalink
fix 32-bit compiler issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Feb 15, 2024
1 parent 1e0e8f8 commit fdf2601
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions databases/lib/libipv6calc_db_wrapper_GeoIP2.c
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ uint32_t libipv6calc_db_wrapper_GeoIP2_wrapper_asn_by_addr(const ipv6calc_ipaddr

// AS Text (optional)
if ((as_orgname != NULL) && (as_orgname_length > 0)) {
DEBUGPRINT_WA(DEBUG_libipv6calc_db_wrapper_GeoIP2, "lookup AS_ORGNAME as_orgname=%p as_orgname_length=%lu", as_orgname, as_orgname_length);
DEBUGPRINT_WA(DEBUG_libipv6calc_db_wrapper_GeoIP2, "lookup AS_ORGNAME as_orgname=%p as_orgname_length=%lu", as_orgname, (long unsigned int) as_orgname_length);
result = libipv6calc_db_wrapper_MMDB_all_by_addr(ipaddrp, &record_asn, &mmdb_cache[GEOIP2_type]);

if (result != MMDB_SUCCESS) {
Expand All @@ -937,7 +937,7 @@ uint32_t libipv6calc_db_wrapper_GeoIP2_wrapper_asn_by_addr(const ipv6calc_ipaddr

DEBUGPRINT_WA(DEBUG_libipv6calc_db_wrapper_GeoIP2, "result AS_ORGNAME=%s", as_orgname);
} else {
DEBUGPRINT_WA(DEBUG_libipv6calc_db_wrapper_GeoIP2, "lookup AS_ORGNAME skipped as_orgname=%p as_orgname_length=%lu", as_orgname, as_orgname_length);
DEBUGPRINT_WA(DEBUG_libipv6calc_db_wrapper_GeoIP2, "lookup AS_ORGNAME skipped as_orgname=%p as_orgname_length=%lu", as_orgname, (long unsigned int) as_orgname_length);
};

GeoIP2_DB_USAGE_MAP_TAG(GEOIP2_type);
Expand Down

0 comments on commit fdf2601

Please sign in to comment.