The sal_uInt64 type should be appropriate for the nHex parameter because the Out_Hex function's buffer holds up to 16 hex digits. To represent the full range of those 16 hex digits you need a 64 bit value. Each hex digit requires 4 bits, so 16 hex digits require 64 bits: 16 * 4 bits. Change-Id: I21f73e7c7076368294df28fb009bf04aab983742 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193309 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins