diff options
author | Joe Crayne <joe@jerkface.net> | 2018-11-03 10:22:28 -0400 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2018-11-03 10:23:45 -0400 |
commit | 7ca3adad36ace11b523f7029fee4d43054f941ef (patch) | |
tree | 8269c428000af9e854e9b02d0b1f1ed6279df1f1 /src/Data | |
parent | 7dfb3adc819be4b3482ec58ccacf8ac55884683c (diff) |
Revert bad lossyness classication (commit b2caea0cbad)
Diffstat (limited to 'src/Data')
-rw-r--r-- | src/Data/Tox/Message.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Data/Tox/Message.hs b/src/Data/Tox/Message.hs index 29b9f832..b77307a2 100644 --- a/src/Data/Tox/Message.hs +++ b/src/Data/Tox/Message.hs | |||
@@ -75,9 +75,8 @@ data LossyOrLossless = Lossless | Lossy | |||
75 | 75 | ||
76 | -- | Classify a packet as lossy or lossless. | 76 | -- | Classify a packet as lossy or lossless. |
77 | lossyness :: MessageID -> LossyOrLossless | 77 | lossyness :: MessageID -> LossyOrLossless |
78 | lossyness (fromEnum -> 1) = Lossless | ||
79 | lossyness (fromEnum -> x) | x < 3 = Lossy | 78 | lossyness (fromEnum -> x) | x < 3 = Lossy |
80 | lossyness (fromEnum -> x) | 16 <= x, x < 192 = Lossless | 79 | lossyness (fromEnum -> x) | {-16 <= x,-} x < 192 = Lossless |
81 | lossyness (fromEnum -> x) | 192 <= x, x < 255 = Lossy | 80 | lossyness (fromEnum -> x) | 192 <= x, x < 255 = Lossy |
82 | lossyness (fromEnum -> 255) = Lossless | 81 | lossyness (fromEnum -> 255) = Lossless |
83 | 82 | ||