mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
Use uintptr_t instead of u32 when storing pointers as integers
uintptr_t is 32-bit or 64-bit depending on the target platform. This will help us write pointer size agnostic code so that when the day comes that we want to do a 64-bit port, we'll be in better shape.
This commit is contained in:
parent
e07b34b9b8
commit
a246e9cd7e
14 changed files with 110 additions and 110 deletions
|
@ -201,7 +201,7 @@ struct GenericAddressStructure {
|
|||
this->bit_width = other.bit_width;
|
||||
this->bit_offset = other.bit_offset;
|
||||
this->access_size = other.access_size;
|
||||
this->address = (u32)other.address;
|
||||
this->address = (uintptr_t)other.address;
|
||||
return *this;
|
||||
}
|
||||
GenericAddressStructure& operator=(const ACPI_RAW::GenericAddressStructure& other)
|
||||
|
@ -210,7 +210,7 @@ struct GenericAddressStructure {
|
|||
this->bit_width = other.bit_width;
|
||||
this->bit_offset = other.bit_offset;
|
||||
this->access_size = other.access_size;
|
||||
this->address = (u32)other.address;
|
||||
this->address = (uintptr_t)other.address;
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue