File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -478,14 +478,9 @@ void ReadExceptionHandlers(out uint totalBodySize) {
478
478
totalBodySize = 0 ;
479
479
}
480
480
481
- static ushort GetNumberOfExceptionHandlers ( uint num ) {
482
- // The CLR truncates the count so num handlers is always <= FFFFh.
483
- return ( ushort ) num ;
484
- }
485
-
486
481
void ReadFatExceptionHandlers ( ref DataReader ehReader ) {
487
482
ehReader . Position -- ;
488
- int num = GetNumberOfExceptionHandlers ( ( ehReader . ReadUInt32 ( ) >> 8 ) / 24 ) ;
483
+ int num = ( int ) ( ( ehReader . ReadUInt32 ( ) >> 8 ) / 24 ) ;
489
484
for ( int i = 0 ; i < num ; i ++ ) {
490
485
var eh = new ExceptionHandler ( ( ExceptionHandlerType ) ehReader . ReadUInt32 ( ) ) ;
491
486
uint offs = ehReader . ReadUInt32 ( ) ;
@@ -505,7 +500,7 @@ void ReadFatExceptionHandlers(ref DataReader ehReader) {
505
500
}
506
501
507
502
void ReadSmallExceptionHandlers ( ref DataReader ehReader ) {
508
- int num = GetNumberOfExceptionHandlers ( ( uint ) ehReader . ReadByte ( ) / 12 ) ;
503
+ int num = ( int ) ( ( uint ) ehReader . ReadByte ( ) / 12 ) ;
509
504
ehReader . Position += 2 ;
510
505
for ( int i = 0 ; i < num ; i ++ ) {
511
506
var eh = new ExceptionHandler ( ( ExceptionHandlerType ) ehReader . ReadUInt16 ( ) ) ;
You can’t perform that action at this time.
0 commit comments