diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-10-20 12:31:59 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-11-01 17:52:29 +0100 |
| commit | 593107e190856b7059f9e32f7dcb1343ca057db7 (patch) | |
| tree | 95daf84e195c5ae3282b17f7c19a6ac138e4c2a3 /MediaBrowser.Common/Hex.cs | |
| parent | b6627af65f690754e14902144237e2f8866ca193 (diff) | |
Multiplication is faster than bit shifting
Diffstat (limited to 'MediaBrowser.Common/Hex.cs')
| -rw-r--r-- | MediaBrowser.Common/Hex.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Common/Hex.cs b/MediaBrowser.Common/Hex.cs index 6c86e4e6d..b2d9aea3a 100644 --- a/MediaBrowser.Common/Hex.cs +++ b/MediaBrowser.Common/Hex.cs @@ -81,7 +81,7 @@ namespace MediaBrowser.Common break; // Unreachable } - bytes[j] = (byte)((a << 4) | b); + bytes[j] = (byte)((a * 16) | b); } return bytes; |
