[server,proxy] fix integer narrowing

This commit is contained in:
akallabeth 2024-09-25 05:15:15 +02:00
parent b5dbe5a167
commit 10bb42e4d8
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -94,8 +94,8 @@ PfChannelResult channelTracker_update(ChannelStateTracker* tracker, const BYTE*
UINT32 flags, size_t totalSize)
{
PfChannelResult result = PF_CHANNEL_RESULT_ERROR;
BOOL firstPacket = (flags & CHANNEL_FLAG_FIRST);
BOOL lastPacket = (flags & CHANNEL_FLAG_LAST);
BOOL firstPacket = (flags & CHANNEL_FLAG_FIRST) != 0;
BOOL lastPacket = (flags & CHANNEL_FLAG_LAST) != 0;
WINPR_ASSERT(tracker);