Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
add an explicit cast
Browse files Browse the repository at this point in the history
  • Loading branch information
cdisselkoen committed Oct 10, 2019
1 parent ff89205 commit 03dd6fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/decoders/nsPNGDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ nsPNGDecoder::ReadPNGData(const char* aData, size_t aLength)
d_png_process_data(mPNG, mInfo,
reinterpret_cast<unsigned char*>(const_cast<char*>((aData_sandbox))),
aLength);
freeInPngSandbox(aData_sandbox);
freeInPngSandbox(const_cast<void*>(aData_sandbox));
#endif
PngBench.Stop();

Expand Down

0 comments on commit 03dd6fd

Please sign in to comment.