diff options
author | Werner Koch <[email protected]> | 2023-06-15 08:58:57 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-06-15 09:01:46 +0000 |
commit | eb68948c438814b99b81adf44b674738d0b1be34 (patch) | |
tree | b5b6e7a6591d7d2fff22f49262b9b2343a612428 /src/conversion.c | |
parent | Fix definition of GPG_ERR_ENABLE_GETTEXT_MACROS (diff) | |
download | gpgme-eb68948c438814b99b81adf44b674738d0b1be34.tar.gz gpgme-eb68948c438814b99b81adf44b674738d0b1be34.zip |
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
Diffstat (limited to 'src/conversion.c')
-rw-r--r-- | src/conversion.c | 4 |
1 files changed, 2 insertions, 2 deletions
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++; |