diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2021-09-03 18:35:54 +0200 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2021-09-05 17:03:48 +0200 |
commit | 7970ec11b57df84d39a8fe3f9955e1f189c2bdf3 (patch) | |
tree | 429375892d63531ab222217e984554bc3f535a16 /src/ipcpd/unicast | |
parent | 06894f02f1cd0b87b3aaabf5648e8313fecd6192 (diff) | |
download | ouroboros-7970ec11b57df84d39a8fe3f9955e1f189c2bdf3.tar.gz ouroboros-7970ec11b57df84d39a8fe3f9955e1f189c2bdf3.zip |
ipcpd: Fix conversion to uint64_t
The print output for MB-ECN had a size_t conversion to uint64_t that
some compilers complain about.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/unicast')
-rw-r--r-- | src/ipcpd/unicast/pol/ca-mb-ecn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/unicast/pol/ca-mb-ecn.c b/src/ipcpd/unicast/pol/ca-mb-ecn.c index 6cf140f5..7a88718f 100644 --- a/src/ipcpd/unicast/pol/ca-mb-ecn.c +++ b/src/ipcpd/unicast/pol/ca-mb-ecn.c @@ -288,7 +288,7 @@ ssize_t mb_ecn_print_stats(void * _ctx, "Current congestion regime: %20s\n", "Multi-bit ECN", ctx->tx_ece, ctx->tx_ctr, - ctx->rx_ece, ctx->rx_ctr, (size_t) (1UL << ctx->tx_mul), + ctx->rx_ece, ctx->rx_ctr, (uint64_t) (1ULL << ctx->tx_mul), ctx->tx_wpc, ctx->tx_wbc, ctx->tx_wbl, regime); |