From 1e845177f30bb020b527898e7e2d11188e7ec60e Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Tue, 3 Sep 2024 14:43:17 +0200 Subject: [PATCH] Remove warnings for MSVC compiler This commit removes: dcmtk\dcmjpls\libsrc\djcodece.cc(1155): warning C4244: 'argument': conversion from 'int' to 'Uint16', possible loss of data dcmtk\dcmjpls\libsrc\djcodece.cc(1155): warning C4244: 'argument': conversion from 'int' to 'Uint16', possible loss of data --- dcmjpls/libsrc/djcodece.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dcmjpls/libsrc/djcodece.cc b/dcmjpls/libsrc/djcodece.cc index adf5dbb156..d6acbf052e 100644 --- a/dcmjpls/libsrc/djcodece.cc +++ b/dcmjpls/libsrc/djcodece.cc @@ -1152,7 +1152,7 @@ OFCondition DJLSEncoderBase::compressCookedFrame( frameBuffer = new Uint8[buffer_size]; framePointer = frameBuffer; - result = convertToUninterleaved(frameBuffer, buffer, samplesPerPixel, width, height, jls_params.bitspersample); + result = convertToUninterleaved(frameBuffer, buffer, OFstatic_cast(Uint16, samplesPerPixel), width, height, OFstatic_cast(Uint16, jls_params.bitspersample)); } #endif