Apply some of the hints that the compiler is giving.

This commit is contained in:
Serge Camille
2020-09-06 15:04:20 +02:00
parent 9ff73ff3f7
commit cf493d47f0
4 changed files with 6 additions and 8 deletions

View File

@@ -75,9 +75,9 @@ namespace S7.Net.Protocol
{
var start = startByte * 8 + bitNumber;
buffer[index + 2] = (byte)start;
start = start >> 8;
start >>= 8;
buffer[index + 1] = (byte)start;
start = start >> 8;
start >>= 8;
buffer[index] = (byte)start;
}