From eb68948c438814b99b81adf44b674738d0b1be34 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 15 Jun 2023 10:58:57 +0200 Subject: core: Use 64 bit instead of gpgme_off_t for some internal functions. * src/conversion.c (_gpgme_string_to_off): Return an u64 value. * src/data.c (_gpgme_data_get_size_hint): Ditto. (gpgme_data_set_flag): Use u64 for io-buffer-size due to string_to_off change. * src/data.h (struct gpgme_data): Change size_hint to u64. * src/engine-gpg.c (add_input_size_hint): Replace gpgme_off_t by u64. -- GnuPG-bug-id: 6534 --- src/conversion.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/conversion.c') diff --git a/src/conversion.c b/src/conversion.c index 17dce7f3..f5dd7ea2 100644 --- a/src/conversion.c +++ b/src/conversion.c @@ -434,10 +434,10 @@ _gpgme_strtoul_field (const char *string, unsigned long *result) /* Convert STRING into an offset value. Note that this functions only * allows for a base-10 length. This function is similar to atoi() * and thus there is no error checking. */ -gpgme_off_t +uint64_t _gpgme_string_to_off (const char *string) { - gpgme_off_t value = 0; + uint64_t value = 0; while (*string == ' ' || *string == '\t') string++; -- cgit v1.2.3