1
0
Fork 0

cast 1 to uint8_t ???

https://matrix.ari.lt/_matrix/media/r0/download/matrix.org/SWFkIzczASGlRdxLFsiNYIqZ

Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
Ari Archer 2024-05-04 01:24:57 +03:00
parent 9e8693795b
commit 3ce12d7ab1
No known key found for this signature in database
GPG key ID: A50D5B4B599AF8A2
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -9,3 +9,4 @@ images
images/*
frames
frames/*
*.mp4

View file

@ -258,7 +258,7 @@ unsigned char CPU_init(CPU *cpu) {
strncpy(cpu->model, strchr(line, ':') + 2, 64);
cpu->model[strcspn(cpu->model, "\n")] = 0;
} else if (strncmp(line, "processor", 9) == 0)
cpu->core_count += 1;
cpu->core_count += (uint8_t)1;
fclose(fp_cpu);