Skip to content

Commit

Permalink
Merge pull request #73 from Jesin/fix
Browse files Browse the repository at this point in the history
fix compiler warnings about const-breaking cast
  • Loading branch information
lvandeve authored Oct 30, 2018
2 parents 071e37c + 2f132d4 commit 425a57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lodepng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ unsigned lodepng_save_file(const unsigned char* buffer, size_t buffersize, const
FILE* file;
file = fopen(filename, "wb" );
if(!file) return 79;
fwrite((char*)buffer , 1 , buffersize, file);
fwrite(buffer, 1, buffersize, file);
fclose(file);
return 0;
}
Expand Down

0 comments on commit 425a57e

Please sign in to comment.