This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ struct COR_ILMETHOD_SECT
335
335
const COR_ILMETHOD_SECT* Next () const
336
336
{
337
337
if (!More ()) return (0 );
338
- return ((COR_ILMETHOD_SECT*)(((BYTE *)this ) + DataSize ()))-> Align ( );
338
+ return ((COR_ILMETHOD_SECT*)Align (((BYTE *)this ) + DataSize ()));
339
339
}
340
340
341
341
const BYTE* Data () const
@@ -373,9 +373,9 @@ struct COR_ILMETHOD_SECT
373
373
return ((AsSmall ()->Kind & CorILMethod_Sect_FatFormat) != 0 );
374
374
}
375
375
376
- const COR_ILMETHOD_SECT * Align () const
376
+ static const void * Align (const void * p)
377
377
{
378
- return ((COR_ILMETHOD_SECT *) ((((UINT_PTR) this ) + 3 ) & ~3 ));
378
+ return ((void *) ((((UINT_PTR) p ) + 3 ) & ~3 ));
379
379
}
380
380
381
381
protected:
@@ -578,7 +578,7 @@ typedef struct tagCOR_ILMETHOD_FAT : IMAGE_COR_ILMETHOD_FAT
578
578
579
579
const COR_ILMETHOD_SECT* GetSect () const {
580
580
if (!More ()) return (0 );
581
- return (((COR_ILMETHOD_SECT*) (GetCode () + GetCodeSize ()))-> Align ( ));
581
+ return (((COR_ILMETHOD_SECT*) COR_ILMETHOD_SECT::Align (GetCode () + GetCodeSize ())));
582
582
}
583
583
} COR_ILMETHOD_FAT;
584
584
Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ class BitSetOps</*BitSetType*/ BitSetShortLongRep,
346
346
{
347
347
if (IsShort (env))
348
348
{
349
- ( size_t &) out = (size_t )out & ((size_t )gen | (size_t )in);
349
+ out = (BitSetShortLongRep)(( size_t )out & ((size_t )gen | (size_t )in) );
350
350
}
351
351
else
352
352
{
@@ -362,7 +362,7 @@ class BitSetOps</*BitSetType*/ BitSetShortLongRep,
362
362
{
363
363
if (IsShort (env))
364
364
{
365
- ( size_t &) in = (size_t )use | ((size_t )out & ~(size_t )def);
365
+ in = (BitSetShortLongRep)(( size_t )use | ((size_t )out & ~(size_t )def) );
366
366
}
367
367
else
368
368
{
You can’t perform that action at this time.
0 commit comments