File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/libraries/System.Runtime.InteropServices.JavaScript/gen/JSImportGenerator Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ public static JSSignatureContext Create(
4848
4949 // there could be multiple method signatures with the same name, get unique signature name
5050 uint hash = 17 ;
51+ int typesHash ;
5152 unchecked
5253 {
5354 foreach ( var param in sigContext . ElementTypeInformation )
@@ -57,8 +58,8 @@ public static JSSignatureContext Create(
5758 foreach ( char c in param . ManagedType . FullTypeName )
5859 hash = hash * 31 + c ;
5960 }
61+ typesHash = ( int ) ( hash & int . MaxValue ) ;
6062 } ;
61- int typesHash = Math . Abs ( ( int ) hash ) ;
6263
6364 var fullName = $ "{ method . ContainingType . ToDisplayString ( ) } .{ method . Name } ";
6465 string qualifiedName = GetFullyQualifiedMethodName ( env , method ) ;
You can’t perform that action at this time.
0 commit comments