This commit is contained in:
Bora Zuenbuelkoek 2025-04-10 19:32:11 +02:00
parent c98aeddecc
commit b36a69ed41

View File

@ -26,7 +26,7 @@ void umrechnen(int number) {
unsigned int mask = 1 << (bits - 1); // Maske für das höchstwertige Bit
// Wenn die Zahl negativ ist, wird sie als Zweierkomplement interpretiert
unsigned int value = (unsigned int)number;
unsigned int value = number;
for (int i = 0; i < bits; i++) {
// Prüfe das höchstwertige Bit und schiebe die Maske nach rechts