mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[warnings,channels] fix integer casts
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user