Skip to content

Commit

Permalink
Merge pull request #84 from cfstras/patch-1
Browse files Browse the repository at this point in the history
Fix compile issue on newer(?) dotnet SDK
  • Loading branch information
atenfyr committed Aug 30, 2024
2 parents 0a45eeb + 975fe2e commit 48cd960
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UAssetAPI/CRCGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ public static uint Strihash_DEPRECATED(string text, Encoding encoding, bool vers
var next = Math.Min(i + 1, text.Length - 1);
if (char.IsHighSurrogate(text[i]) && next != i && char.IsLowSurrogate(text[next]))
{
rawDataForCharacter = encoding.GetBytes([text[i], text[++i]]);
rawDataForCharacter = encoding.GetBytes( new [] { text[i], text[++i] });
}
else
{
char B = !version420 ? ToUpper(text[i]) : ToUpperVersion420(text[i]);
rawDataForCharacter = encoding.GetBytes([B]);
rawDataForCharacter = encoding.GetBytes(new [] { B });
}

foreach (byte rawByte in rawDataForCharacter)
Expand Down

0 comments on commit 48cd960

Please sign in to comment.