Fixed tautological-unsigned-zero-compare

This commit is contained in:
akallabeth 2022-10-11 11:57:12 +02:00 committed by Martin Fleisz
parent 080e44fc96
commit 59eae5dbc3
3 changed files with 5 additions and 8 deletions

View File

@ -1011,9 +1011,6 @@ BOOL rpc_client_write_call(rdpRpc* rpc, wStream* s, UINT16 opnum)
size = credssp_auth_trailer_size(auth);
if (size < 0)
goto fail;
request_pdu.header = rpc_pdu_header_init(rpc);
request_pdu.header.ptype = PTYPE_REQUEST;
request_pdu.header.pfc_flags = PFC_FIRST_FRAG | PFC_LAST_FRAG;

View File

@ -55,7 +55,7 @@ rdtkSurface* rdtk_surface_new(rdtkEngine* engine, uint8_t* data, uint16_t width,
surface->width = width;
surface->height = height;
if (scanline < 0)
if (scanline == 0)
scanline = width * 4;
surface->scanline = scanline;

View File

@ -609,8 +609,8 @@ static int x11_shadow_blend_cursor(x11ShadowSubsystem* subsystem)
UINT32 x, y;
UINT32 nXSrc;
UINT32 nYSrc;
UINT32 nXDst;
UINT32 nYDst;
INT64 nXDst;
INT64 nYDst;
UINT32 nWidth;
UINT32 nHeight;
UINT32 nSrcStep;
@ -641,7 +641,7 @@ static int x11_shadow_blend_cursor(x11ShadowSubsystem* subsystem)
if (nXDst >= nWidth)
return 1;
nXSrc = nXDst;
nXSrc = (UINT32)nXDst;
nWidth -= nXDst;
nXDst = 0;
}
@ -656,7 +656,7 @@ static int x11_shadow_blend_cursor(x11ShadowSubsystem* subsystem)
if (nYDst >= nHeight)
return 1;
nYSrc = nYDst;
nYSrc = (UINT32)nYDst;
nHeight -= nYDst;
nYDst = 0;
}