Skip to content

Commit

Permalink
Revert "[browser] fix code gen overflow (dotnet#110539)" (dotnet#110599)
Browse files Browse the repository at this point in the history
This reverts commit 1fa2361.
  • Loading branch information
jkotas authored and hez2010 committed Dec 14, 2024
1 parent 6d18e0d commit 2579b1e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public static JSSignatureContext Create(

// there could be multiple method signatures with the same name, get unique signature name
uint hash = 17;
int typesHash;
unchecked
{
foreach (var param in sigContext.ElementTypeInformation)
Expand All @@ -58,8 +57,8 @@ public static JSSignatureContext Create(
foreach (char c in param.ManagedType.FullTypeName)
hash = hash * 31 + c;
}
typesHash = (int)(hash & int.MaxValue);
};
int typesHash = Math.Abs((int)hash);

var fullName = $"{method.ContainingType.ToDisplayString()}.{method.Name}";
string qualifiedName = GetFullyQualifiedMethodName(env, method);
Expand Down

0 comments on commit 2579b1e

Please sign in to comment.