From: Diego Fronza Date: Tue, 5 Nov 2019 20:48:47 +0000 (-0300) Subject: Change the isc_statscounter_t type from int to C99 int_fast64_t type X-Git-Tag: v9.11.13~11^2~7 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=e4ebeff0e43d18d4cd85e35a25d31b7cb1eb8357;p=thirdparty%2Fbind9.git Change the isc_statscounter_t type from int to C99 int_fast64_t type For TCP high-water work, we need to keep the used integer types widths in sync. Note: int_fast32_t is used on WIN32 platform (cherry picked from commit 0fc98ef2d50476e330d90632d4164f94018eb7d4) --- diff --git a/lib/isc/include/isc/types.h b/lib/isc/include/isc/types.h index 42ff7e09153..da9d66f6eb9 100644 --- a/lib/isc/include/isc/types.h +++ b/lib/isc/include/isc/types.h @@ -83,7 +83,11 @@ typedef struct isc_socket isc_socket_t; /*%< Socket */ typedef struct isc_socketevent isc_socketevent_t; /*%< Socket Event */ typedef struct isc_socketmgr isc_socketmgr_t; /*%< Socket Manager */ typedef struct isc_stats isc_stats_t; /*%< Statistics */ -typedef int isc_statscounter_t; /*%< Statistics Counter */ +#if defined(_WIN32) && !defined(_WIN64) + typedef int_fast32_t isc_statscounter_t; /*%< Statistics Counter */ +#else + typedef int_fast64_t isc_statscounter_t; +#endif typedef struct isc_symtab isc_symtab_t; /*%< Symbol Table */ typedef struct isc_task isc_task_t; /*%< Task */ typedef ISC_LIST(isc_task_t) isc_tasklist_t; /*%< Task List */