forge
Explore
Log in

Don't you dare go Hollow

S3: drop the doc comment added to wrap_delta (no new comments)

Browse files at this commit

369875456449d276769df6286830ff52e336fd0cAhmet Kaan GümüşParent: 0d05533
crates/ec-mpegts/src/demux.rsmodified+0 -1
@@ -68,7 +68,6 @@ enum Cc {
68 68
69 const WRAP33: i64 = 1 << 33;69 const WRAP33: i64 = 1 << 33;
70 70
71-/// Signed distance from `b` to `a` on the 33-bit clock, in [-2^32, 2^32).
72 pub(crate) fn wrap_delta(a: i64, b: i64) -> i64 {71 pub(crate) fn wrap_delta(a: i64, b: i64) -> i64 {
73 let d = (a - b).rem_euclid(WRAP33);72 let d = (a - b).rem_euclid(WRAP33);
74 if d >= WRAP33 / 2 { d - WRAP33 } else { d }73 if d >= WRAP33 / 2 { d - WRAP33 } else { d }