Skip to content

Commit

Permalink
switch to unsigned int
Browse files Browse the repository at this point in the history
  • Loading branch information
qbnu committed May 24, 2024
1 parent 85366f8 commit 08bc6df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JPEGView/JPEGLosslessTransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static CJPEGLosslessTransform::EResult _DoTransformation(LPCTSTR sInputFile, LPC
unsigned char* pInputJPEGBytes = _ReadFile(sInputFile, nNumBytesInput);
if (pInputJPEGBytes != NULL) {
unsigned char* pOutputJPEGBytes = NULL;
size_t nNumBytesOutput = 0;
unsigned int nNumBytesOutput = 0;
if (0 == tj3Transform(hTransform, pInputJPEGBytes, nNumBytesInput, 1, &pOutputJPEGBytes, &nNumBytesOutput, &transform) && pOutputJPEGBytes != NULL) {
if (!_WriteFile(sOutputFile, pOutputJPEGBytes, nNumBytesOutput)) {
eResult = CJPEGLosslessTransform::WriteFileFailed;
Expand Down

0 comments on commit 08bc6df

Please sign in to comment.