halo
This commit is contained in:
parent
c98aeddecc
commit
b36a69ed41
@ -26,7 +26,7 @@ void umrechnen(int number) {
|
|||||||
unsigned int mask = 1 << (bits - 1); // Maske für das höchstwertige Bit
|
unsigned int mask = 1 << (bits - 1); // Maske für das höchstwertige Bit
|
||||||
|
|
||||||
// Wenn die Zahl negativ ist, wird sie als Zweierkomplement interpretiert
|
// 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++) {
|
for (int i = 0; i < bits; i++) {
|
||||||
// Prüfe das höchstwertige Bit und schiebe die Maske nach rechts
|
// Prüfe das höchstwertige Bit und schiebe die Maske nach rechts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user