[gnutls-devel] GnuTLS | gnutls-cli: fix --benchmark-ciphers type overflow (!934)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Sun Feb 24 10:51:49 CET 2019


Tim Rühsen commented on a discussion on src/benchmark.c:

>  #endif
>  
>  static void
> -value2human(unsigned long bytes, double time, double *data, double *speed,
> +value2human(uint64_t bytes, double time, double *data, double *speed,

I indeed overlooked it and I think you are talking about 'inttypes.h'. That include is more for printf format definition like `PRIu64` to printf uint64_t.

'stdint.h' is the C99 header file we need for uint64_t. Please include that and remove '__STDC_FORMAT_MACROS' (not used any more today). 'stdint.h' is also backed up by gnulib and thus very portable for us.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/934#note_144350198
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190224/2c7a0835/attachment.html>


More information about the Gnutls-devel mailing list