mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 05:38:21 +00:00
fix stupid bugs
strcmp was funky, added a few guard checks to hashtable, added error printing to initrd and fixed swapgs (again) in isr.asm
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
int strcmp(const char* a, const char* b){
|
||||
|
||||
while(*a && (*a++ == *b++));
|
||||
while(*a && (*a == *b)){
|
||||
++a;
|
||||
++b;
|
||||
}
|
||||
|
||||
return *(const unsigned char*)a - *(const unsigned char*)b;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user