Skip to content

Commit

Permalink
Merge pull request #444 from maxbbraun/patch-1
Browse files Browse the repository at this point in the history
Fix typo in runq.c comment
  • Loading branch information
karpathy authored Feb 13, 2024
2 parents 1fb5d15 + c760ae6 commit e0eb8b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runq.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void read_checkpoint(char* checkpoint, Config* config, TransformerWeights* weigh
uint32_t magic_number;
if (fread(&magic_number, sizeof(uint32_t), 1, file) != 1) { exit(EXIT_FAILURE); }
if (magic_number != 0x616b3432) { fprintf(stderr, "Bad magic number\n"); exit(EXIT_FAILURE); }
// read in the version number (uint32), has to be 1
// read in the version number (uint32), has to be 2
int version;
if (fread(&version, sizeof(int), 1, file) != 1) { exit(EXIT_FAILURE); }
if (version != 2) { fprintf(stderr, "Bad version %d, need version 2\n", version); exit(EXIT_FAILURE); }
Expand Down

0 comments on commit e0eb8b2

Please sign in to comment.