summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-01-15 21:02:30 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2022-01-19 21:54:41 +0200
commit667a009cd72a0adcea0fc9f8e8b8a1a6e05c86e1 (patch)
tree85644e801a1eb73a7eec7561b7e8b5e6c77512e9
parentb2c6206adb046c2463f7308a113ef0368c34d3e2 (diff)
downloadserenity-667a009cd72a0adcea0fc9f8e8b8a1a6e05c86e1.zip
Kernel/PCI: Don't cast a domain number to u16
Found by Tom (tomuta) during a debug session of these changes.
-rw-r--r--Kernel/Bus/PCI/Definitions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Bus/PCI/Definitions.h b/Kernel/Bus/PCI/Definitions.h
index 4d9447020d..c4a9d6e79b 100644
--- a/Kernel/Bus/PCI/Definitions.h
+++ b/Kernel/Bus/PCI/Definitions.h
@@ -184,7 +184,7 @@ public:
return !(*this == other);
}
- u16 domain() const { return m_domain; }
+ u32 domain() const { return m_domain; }
u8 bus() const { return m_bus; }
u8 device() const { return m_device; }
u8 function() const { return m_function; }