Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit 54f491f

Browse files
committed
right type for singles
1 parent 246f6ce commit 54f491f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.AspNet.Server.Kestrel/Infrastructure/MemoryPoolIterator2Extensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private static unsafe string GetAsciiStringImplementation(char* outputStart, byt
5656
}
5757
for (; i < length; i++)
5858
{
59-
hash = hash * 31 + *((uint*)input);
59+
hash = hash * 31 + *((char*)input);
6060
*(output++) = (char)*(input++);
6161
}
6262

@@ -119,7 +119,7 @@ private static unsafe string GetAsciiStringImplementation(char* outputStart, Mem
119119
}
120120
for (; i < following; i++)
121121
{
122-
hash = hash * 31 + *((uint*)input);
122+
hash = hash * 31 + *((char*)input);
123123
*(output++) = (char)*(input++);
124124
}
125125
}

0 commit comments

Comments
 (0)