mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Fixed compiler warnings
This commit is contained in:
parent
8fd53ea9b2
commit
305168a593
@ -219,7 +219,7 @@ namespace APIC
|
|||||||
{
|
{
|
||||||
SmartCriticalSection(APICLock);
|
SmartCriticalSection(APICLock);
|
||||||
APIC_BASE BaseStruct = {.raw = rdmsr(MSR_APIC_BASE)};
|
APIC_BASE BaseStruct = {.raw = rdmsr(MSR_APIC_BASE)};
|
||||||
APICBaseAddress = BaseStruct.ApicBaseLo << 12u | BaseStruct.ApicBaseHi << 32u;
|
APICBaseAddress = BaseStruct.ApicBaseLo << 12u | (unsigned long)BaseStruct.ApicBaseHi << 32u;
|
||||||
trace("APIC Address: %#lx", APICBaseAddress);
|
trace("APIC Address: %#lx", APICBaseAddress);
|
||||||
|
|
||||||
uint32_t rcx;
|
uint32_t rcx;
|
||||||
|
@ -40,13 +40,13 @@ public:
|
|||||||
HashNode<K, V> *tmp = new HashNode<K, V>(Key, Value);
|
HashNode<K, V> *tmp = new HashNode<K, V>(Key, Value);
|
||||||
int Index = HashCode(Key);
|
int Index = HashCode(Key);
|
||||||
|
|
||||||
while (Nodes[Index] != nullptr && Nodes[Index]->Key != Key && Nodes[Index]->Key != -1)
|
while (Nodes[Index] != nullptr && Nodes[Index]->Key != Key && Nodes[Index]->Key != (K)-1)
|
||||||
{
|
{
|
||||||
Index++;
|
Index++;
|
||||||
Index %= HashMapCapacity;
|
Index %= HashMapCapacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Nodes[Index] == nullptr || Nodes[Index]->Key == -1)
|
if (Nodes[Index] == nullptr || Nodes[Index]->Key == (K)-1)
|
||||||
HashMapSize++;
|
HashMapSize++;
|
||||||
Nodes[Index] = tmp;
|
Nodes[Index] = tmp;
|
||||||
}
|
}
|
||||||
@ -80,7 +80,7 @@ public:
|
|||||||
if (Iterate++ > HashMapCapacity)
|
if (Iterate++ > HashMapCapacity)
|
||||||
return 0xdeadbeef;
|
return 0xdeadbeef;
|
||||||
|
|
||||||
if (Nodes[Index]->Key == Key)
|
if (Nodes[Index]->Key == (K)Key)
|
||||||
return Nodes[Index]->Value;
|
return Nodes[Index]->Value;
|
||||||
Index++;
|
Index++;
|
||||||
Index %= HashMapCapacity;
|
Index %= HashMapCapacity;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user