limine-install: Fix type mismatch bug

This commit is contained in:
mintsuki 2020-12-19 18:30:39 +01:00
parent ac08fbc578
commit 1f0636bcb7
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ int main(int argc, char *argv[]) {
struct gpt_table_header gpt_header;
uint64_t lb_guesses[] = { 512, 4096 };
uint64_t lb_size;
for (size_t i = 0; i < sizeof(lb_guesses) / sizeof(int); i++) {
for (size_t i = 0; i < sizeof(lb_guesses) / sizeof(uint64_t); i++) {
fseek(device, lb_guesses[i], SEEK_SET);
fread(&gpt_header, sizeof(struct gpt_table_header), 1, device);
if (!strncmp(gpt_header.signature, "EFI PART", 8)) {