changed some clang-tidy warnings
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user