diff options
-rw-r--r-- | makefs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -49,7 +49,7 @@ int main(int argc, char **argv) errx(-1, "error writing to stdout"); // pad with null-bytes until a 4-aligned offset - for (unsigned int j = 0; (j + (name_size & 0b11)) & 0b11; j++) + for (uint32_t j = 0; (j + name_size) & 0b11; j++) if (putchar('\0')) errx(-1, "error writing to stdout"); @@ -82,7 +82,7 @@ int main(int argc, char **argv) } // again, pad with null-bytes until a 4-aligned offset - for (int j = 0; (j + (file_size & 0b11)) & 0b11; j++) + for (uint32_t j = 0; (j + file_size) & 0b11; j++) if (putchar('\0')) errx(-1, "error writing to stdout"); } |