Skip to content

Commit

Permalink
Revert "[browser] fix code gen overflow (#110539)"
Browse files Browse the repository at this point in the history
This reverts commit 1fa2361.
  • Loading branch information
jkotas authored Dec 11, 2024
1 parent eab352d commit c07a81e
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 c07a81e

Please sign in to comment.