Reactos

[ACPICA][UDFS][BTRFS] Fix MSVC warning C4319

"warning C4319: '~': zero extending 'uint32_t' to 'uint64_t' of greater size"
Fixes build with VS 2026.

+9 -9
+1 -1
drivers/bus/acpi/acpica/hardware/hwgpe.c
··· 155 155 156 156 case ACPI_GPE_DISABLE: 157 157 158 - ACPI_CLEAR_BIT (EnableMask, RegisterBit); 158 + ACPI_CLEAR_BIT (EnableMask, (UINT64)RegisterBit); 159 159 break; 160 160 161 161 default:
+6 -6
drivers/filesystems/udfs/udf_info/extent.cpp
··· 1977 1977 // length of existing Not-Alloc-Not-Rec frag 1978 1978 sLen = (( (((uint32)Offset) & (LBS-1)) + Length+LBS-1) & ~(LBS-1)) >> BSh; 1979 1979 // required allocation length increment (in bytes) 1980 - aLen = (uint32)( ((Offset+Length+LBS-1) & ~(LBS-1)) - (Offset & ~(LBS-1))); 1980 + aLen = (uint32)( ((Offset+Length+LBS-1) & ~(UINT64)(LBS-1)) - (Offset & ~(UINT64)(LBS-1))); 1981 1981 1982 1982 // try to extend previous frag or allocate space _after_ it to 1983 1983 // avoid backward seeks, if previous frag is not Not-Rec-Not-Alloc ··· 2146 2146 // length of existing Alloc-(Not-)Rec frag (in sectors) 2147 2147 sLen = (( (((uint32)Offset) & (LBS-1)) + Length+LBS-1) & ~(LBS-1)) >> BSh; 2148 2148 // required deallocation length increment (in bytes) 2149 - aLen = (uint32)( ((Offset+Length+LBS-1) & ~(LBS-1)) - (Offset & ~(LBS-1)) ); 2149 + aLen = (uint32)( ((Offset+Length+LBS-1) & ~(UINT64)(LBS-1)) - (Offset & ~(UINT64)(LBS-1)) ); 2150 2150 2151 2151 l=0; 2152 2152 for(j=0; j<i; j++) { ··· 2376 2376 lim = (((uint32)UDF_MAX_EXTENT_LENGTH) >> BSh) & ~(LBS-1); 2377 2377 } 2378 2378 // required last extent length 2379 - req_s = s + (uint32)( (((Length + LBS - 1) & ~(LBS-1)) - 2380 - ((l + LBS - 1) & ~(LBS-1)) ) >> BSh); 2379 + req_s = s + (uint32)( (((Length + LBS - 1) & ~(UINT64)(LBS-1)) - 2380 + ((l + LBS - 1) & ~(UINT64)(LBS-1)) ) >> BSh); 2381 2381 if(lim > req_s) { 2382 2382 lim = req_s; 2383 2383 } ··· 2449 2449 lim = (((uint32)UDF_MAX_EXTENT_LENGTH) >> BSh) & ~(LBS-1); 2450 2450 } 2451 2451 // required last extent length 2452 - req_s = s + (uint32)( (((Length + LBS - 1) & ~(LBS-1)) - 2453 - ((l + LBS - 1) & ~(LBS-1)) ) >> BSh); 2452 + req_s = s + (uint32)( (((Length + LBS - 1) & ~(UINT64)(LBS-1)) - 2453 + ((l + LBS - 1) & ~(UINT64)(LBS-1)) ) >> BSh); 2454 2454 if(lim > req_s) { 2455 2455 lim = req_s; 2456 2456 }
+1 -1
drivers/filesystems/udfs/udf_info/udf_info.cpp
··· 1690 1690 Vcb->LowFreeSpace ? "LowSpace" : "")); 1691 1691 if(UDFIsADirectory(FileInfo) && !WasInIcb && !Vcb->LowFreeSpace) { 1692 1692 FileInfo->Dloc->DataLoc.Flags |= EXTENT_FLAG_ALLOC_SEQUENTIAL; 1693 - status = UDFResizeExtent(Vcb, PartNum, (t*2+Vcb->WriteBlockSize-1) & ~(SIZE_T)(Vcb->WriteBlockSize-1), FALSE, &(Dloc->DataLoc)); 1693 + status = UDFResizeExtent(Vcb, PartNum, (t*2+Vcb->WriteBlockSize-1) & ~(UINT64)(Vcb->WriteBlockSize-1), FALSE, &(Dloc->DataLoc)); 1694 1694 if(OS_SUCCESS(status)) { 1695 1695 AdPrint((" preallocated space for Dir\n")); 1696 1696 FileInfo->Dloc->DataLoc.Flags |= EXTENT_FLAG_PREALLOCATED;
+1 -1
sdk/lib/fslib/btrfslib/btrfslib.c
··· 416 416 size = 0x800000; 417 417 418 418 size = min(size, dev->dev_item.num_bytes / 10); // cap at 10% 419 - size &= ~(sector_size - 1); 419 + size &= ~(UINT64)(sector_size - 1); 420 420 421 421 stripes = flags & BLOCK_FLAG_DUPLICATE ? 2 : 1; 422 422