Permalink
Browse files

Simplified WriteUlongAsHexToBuffer

  • Loading branch information...
1 parent 27413cb commit 404cf34de20c48e019022e891c073162cc0d56d2 @halter73 halter73 committed Nov 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Microsoft.AspNet.SignalR.Core/MessageBus/Cursor.cs
View
2 src/Microsoft.AspNet.SignalR.Core/MessageBus/Cursor.cs
@@ -99,7 +99,7 @@ private static int WriteUlongAsHexToBuffer(ulong value, char* pBuffer)
for (int i = 0; i < 16; i++)
{
// Convert the first 4 bits of the value to a valid hex character.
- pBuffer[length] = Int32ToHex((int)((value & 0xf000000000000000) >> 60)); // take first 4 bits and shift 60 bits
+ pBuffer[length] = Int32ToHex((int)(value >> 60));
value <<= 4;
// Don't increment length if it would just add zero padding

0 comments on commit 404cf34

Please sign in to comment.