1

changed some clang-tidy warnings

This commit is contained in:
churl
2022-05-23 17:07:42 +02:00
parent 7927220247
commit 5229e83de5
2 changed files with 5 additions and 5 deletions

View File

@ -187,7 +187,7 @@ unsigned char CGA::attribute(CGA::color bg, CGA::color fg, bool blink) {
/* Hier muess Code eingefuegt werden */
return static_cast<int>(blink) << 7 // B0000000
| (bg & 0x7) << 4 // 0HHH0000 (Hintergrund)
| (fg & 0xF); // 0000VVVV (Vordergrund)
return (int)blink << 7 // B0000000
| (bg & 0x7) << 4 // 0HHH0000 (Hintergrund)
| (fg & 0xF); // 0000VVVV (Vordergrund)
}

View File

@ -63,12 +63,12 @@ int IntDispatcher::assign(unsigned int vector, ISR& isr) {
/* hier muss Code eingefuegt werden */
if (vector >= this->size) {
if constexpr (DEBUG) kout << "Invalid vector number when assigning" << endl;
if constexpr (DEBUG) { kout << "Invalid vector number when assigning" << endl; }
return -1;
}
this->map[vector] = &isr;
if constexpr (DEBUG) kout << "Registered ISR for vector " << dec << vector << endl;
if constexpr (DEBUG) { kout << "Registered ISR for vector " << dec << vector << endl; }
return 0;
}