diff options
author | Dimitri Staessens <[email protected]> | 2023-08-12 18:30:44 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2023-08-23 13:09:10 +0200 |
commit | 18d706ca25cba6b3d1c2a2c97562c40a1745b72d (patch) | |
tree | 18390da778a7080a21101fa2deb1cabc74ad92ff /src/lib/frct.c | |
parent | a7bbe9841bb1633fab84428252b16bf4d938932f (diff) | |
download | ouroboros-18d706ca25cba6b3d1c2a2c97562c40a1745b72d.tar.gz ouroboros-18d706ca25cba6b3d1c2a2c97562c40a1745b72d.zip |
lib: Fix signed/unsigned mismatches on raspbian
Compilation on raspberry pi revealed some previously undetected
signed/unsigned comparisons in the library.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/lib/frct.c')
-rw-r--r-- | src/lib/frct.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/frct.c b/src/lib/frct.c index 3b1cd6c7..7451e9e9 100644 --- a/src/lib/frct.c +++ b/src/lib/frct.c @@ -789,8 +789,8 @@ static void rtt_estimator(struct frcti * frcti, #ifdef PROC_FLOW_STATS frcti->n_rtt++; #endif - frcti->srtt = MAX(1000U, srtt); - frcti->mdev = MAX(100U, rttvar); + frcti->srtt = MAX(1000L, srtt); + frcti->mdev = MAX(100L, rttvar); frcti->rto = MAX(RTO_MIN, frcti->srtt + (frcti->mdev << MDEV_MUL)); } |