[winpr,stream] fix return value

signed int functions should not return unsigned values
This commit is contained in:
akallabeth 2024-09-04 13:15:19 +02:00
parent d959121b2f
commit a82821b756
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -188,7 +188,7 @@ extern "C"
return v;
}
static INLINE UINT16 stream_read_i16_le(wStream* _s, BOOL seek)
static INLINE INT16 stream_read_i16_le(wStream* _s, BOOL seek)
{
WINPR_ASSERT(_s);
WINPR_ASSERT(Stream_GetRemainingLength(_s) >= sizeof(INT16));
@ -200,7 +200,7 @@ extern "C"
return v;
}
static INLINE UINT16 stream_read_i16_be(wStream* _s, BOOL seek)
static INLINE INT16 stream_read_i16_be(wStream* _s, BOOL seek)
{
WINPR_ASSERT(_s);
WINPR_ASSERT(Stream_GetRemainingLength(_s) >= sizeof(INT16));