[warnings,channels] fix integer casts

This commit is contained in:
akallabeth
2024-12-19 12:05:33 +01:00
parent 5dc31e1691
commit be3ba1c425
38 changed files with 302 additions and 204 deletions

View File

@@ -24,6 +24,7 @@
#include <freerdp/config.h>
#include <winpr/assert.h>
#include <winpr/cast.h>
#include <winpr/crt.h>
#include <winpr/wlog.h>
@@ -1254,8 +1255,8 @@ static UINT rdpgfx_recv_end_frame_pdu(GENERIC_CHANNEL_CALLBACK* callback, wStrea
qoe.frameId = pdu.frameId;
qoe.timestamp = gfx->StartDecodingTime % UINT32_MAX;
qoe.timeDiffSE = diff;
qoe.timeDiffEDR = EndFrameTime;
qoe.timeDiffSE = WINPR_ASSERTING_INT_CAST(UINT16, diff);
qoe.timeDiffEDR = WINPR_ASSERTING_INT_CAST(UINT16, EndFrameTime);
if ((error = rdpgfx_send_qoe_frame_acknowledge_pdu(context, &qoe)))
WLog_Print(gfx->log, WLOG_ERROR,