From 78e6bd9e58ecca16f5631d438aef3f941e266532 Mon Sep 17 00:00:00 2001 From: Amlal Date: Fri, 21 Feb 2025 18:23:44 +0100 Subject: ADD: Explicit types instead of auto. Signed-off-by: Amlal --- dev/Kernel/HALKit/AMD64/Storage/AHCI.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev/Kernel') diff --git a/dev/Kernel/HALKit/AMD64/Storage/AHCI.cc b/dev/Kernel/HALKit/AMD64/Storage/AHCI.cc index 890e787f..9aaa949e 100644 --- a/dev/Kernel/HALKit/AMD64/Storage/AHCI.cc +++ b/dev/Kernel/HALKit/AMD64/Storage/AHCI.cc @@ -98,7 +98,7 @@ STATIC Int32 drv_find_cmd_slot(HbaPort* port) noexcept template STATIC Void drv_std_input_output(UInt64 lba, UInt8* buffer, SizeT sector_sz, SizeT size_buffer) noexcept { - auto slot = 0L; + UIntPtr slot = 0UL; slot = drv_find_cmd_slot(&kSATA->Ports[kSATAIndex]); @@ -119,7 +119,7 @@ STATIC Void drv_std_input_output(UInt64 lba, UInt8* buffer, SizeT sector_sz, Siz MUST_PASS(command_table); - auto buffer_phys = HAL::hal_get_phys_address(buffer); + UIntPtr buffer_phys = HAL::hal_get_phys_address(buffer); command_table->Prdt[0].Dba = ((UInt32)(UInt64)buffer_phys & __UINT32_MAX__); command_table->Prdt[0].Dbau = (((UInt64)(buffer_phys) >> 32) & __UINT32_MAX__); -- cgit v1.2.3