Skip to content

Commit

Permalink
Fix compilation with GCC 14. (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
Apprentice-Alchemist committed Jun 24, 2024
1 parent 8d95f3c commit 44c97cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ static void profile_dump( vbyte* ptr ) {
printf("Writing profiling data...\n");
fflush(stdout);

char* filename = ptr == NULL ? "hlprofile.dump" : hl_to_utf8(ptr);
char* filename = ptr == NULL ? "hlprofile.dump" : hl_to_utf8((uchar*)ptr);
FILE *f = fopen(filename,"wb");
int version = HL_VERSION;
fwrite("PROF",1,4,f);
Expand Down

0 comments on commit 44c97cf

Please sign in to comment.