COMP: Fixing return type of the Get methods associated with variables that

were changed from "unsigned long" to "size_t" to solve warnings about
      64 bits to 32 bits truncations.
This commit is contained in:
Luis Ibanez 2009-11-16 12:43:44 -05:00
parent 2921fa96ed
commit 69fdf711fe
2 changed files with 16 additions and 16 deletions

View File

@ -128,10 +128,10 @@ public:
bool DoesCPUSupportCPUID(); bool DoesCPUSupportCPUID();
// Retrieve memory information in megabyte. // Retrieve memory information in megabyte.
unsigned long GetTotalVirtualMemory(); size_t GetTotalVirtualMemory();
unsigned long GetAvailableVirtualMemory(); size_t GetAvailableVirtualMemory();
unsigned long GetTotalPhysicalMemory(); size_t GetTotalPhysicalMemory();
unsigned long GetAvailablePhysicalMemory(); size_t GetAvailablePhysicalMemory();
/** Run the different checks */ /** Run the different checks */
void RunCPUCheck(); void RunCPUCheck();
@ -385,20 +385,20 @@ bool SystemInformation::DoesCPUSupportCPUID()
} }
// Retrieve memory information in megabyte. // Retrieve memory information in megabyte.
unsigned long SystemInformation::GetTotalVirtualMemory() size_t SystemInformation::GetTotalVirtualMemory()
{ {
return this->Implementation->GetTotalVirtualMemory(); return this->Implementation->GetTotalVirtualMemory();
} }
unsigned long SystemInformation::GetAvailableVirtualMemory() size_t SystemInformation::GetAvailableVirtualMemory()
{ {
return this->Implementation->GetAvailableVirtualMemory(); return this->Implementation->GetAvailableVirtualMemory();
} }
unsigned long SystemInformation::GetTotalPhysicalMemory() size_t SystemInformation::GetTotalPhysicalMemory()
{ {
return this->Implementation->GetTotalPhysicalMemory(); return this->Implementation->GetTotalPhysicalMemory();
} }
unsigned long SystemInformation::GetAvailablePhysicalMemory() size_t SystemInformation::GetAvailablePhysicalMemory()
{ {
return this->Implementation->GetAvailablePhysicalMemory(); return this->Implementation->GetAvailablePhysicalMemory();
} }
@ -2446,24 +2446,24 @@ int SystemInformationImplementation::QueryMemory()
} }
/** */ /** */
unsigned long SystemInformationImplementation::GetTotalVirtualMemory() size_t SystemInformationImplementation::GetTotalVirtualMemory()
{ {
return this->TotalVirtualMemory; return this->TotalVirtualMemory;
} }
/** */ /** */
unsigned long SystemInformationImplementation::GetAvailableVirtualMemory() size_t SystemInformationImplementation::GetAvailableVirtualMemory()
{ {
return this->AvailableVirtualMemory; return this->AvailableVirtualMemory;
} }
unsigned long SystemInformationImplementation::GetTotalPhysicalMemory() size_t SystemInformationImplementation::GetTotalPhysicalMemory()
{ {
return this->TotalPhysicalMemory; return this->TotalPhysicalMemory;
} }
/** */ /** */
unsigned long SystemInformationImplementation::GetAvailablePhysicalMemory() size_t SystemInformationImplementation::GetAvailablePhysicalMemory()
{ {
return this->AvailablePhysicalMemory; return this->AvailablePhysicalMemory;
} }

View File

@ -63,10 +63,10 @@ public:
bool DoesCPUSupportCPUID(); bool DoesCPUSupportCPUID();
// Retrieve memory information in megabyte. // Retrieve memory information in megabyte.
unsigned long GetTotalVirtualMemory(); size_t GetTotalVirtualMemory();
unsigned long GetAvailableVirtualMemory(); size_t GetAvailableVirtualMemory();
unsigned long GetTotalPhysicalMemory(); size_t GetTotalPhysicalMemory();
unsigned long GetAvailablePhysicalMemory(); size_t GetAvailablePhysicalMemory();
/** Run the different checks */ /** Run the different checks */
void RunCPUCheck(); void RunCPUCheck();