diff options
author | kar-rahul-aws <118818625+kar-rahul-aws@users.noreply.github.com> | 2023-07-26 12:20:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-26 12:20:27 +0300 |
commit | d02ab775f321e5f3b59e5a3c609ea6c06c0199c1 (patch) | |
tree | 7488342acb5698f0fd640bdc625a93648ecb102e /stream_buffer.c | |
parent | dbef667bf43f10c8f82d809341053887602a2ca7 (diff) |
Fix warning issue for warning in arithmetic conversion for UBaseType_t (#720)
* Fix warning issue for warnign in arithmnetic conversion for UBaseType_t
* Fix warning in streamBuffer
* Add cast to queue.c file changes
* Minor fix to cast
* Fix formatting
* Revert minor fix to cast
---------
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Diffstat (limited to 'stream_buffer.c')
-rw-r--r-- | stream_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream_buffer.c b/stream_buffer.c index b7410fc06..80975bdc8 100644 --- a/stream_buffer.c +++ b/stream_buffer.c @@ -1448,7 +1448,7 @@ static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer, uint8_t ucStreamBufferGetStreamBufferType( StreamBufferHandle_t xStreamBuffer ) { - return( xStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ); + return( ( uint8_t ) ( xStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) ); } #endif /* configUSE_TRACE_FACILITY */ |