Skip to content

Commit

Permalink
Add a cast to NATIVE_UINT_TYPE in SmSignalBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
watney committed Sep 19, 2024
1 parent f5eef35 commit 9d34778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Fw/Sm/SmSignalBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Fw {
SmSignalBuffer::SmSignalBuffer(const U8 *args, FwSizeType size) : m_bufferData{} {
FW_ASSERT(args != nullptr);
FW_ASSERT(size <= sizeof(this->m_bufferData));
SerializeStatus stat = SerializeBufferBase::setBuff(args,size);
SerializeStatus stat = SerializeBufferBase::setBuff(args,static_cast<NATIVE_UINT_TYPE>(size));
FW_ASSERT(FW_SERIALIZE_OK == stat,static_cast<NATIVE_INT_TYPE>(stat));
}

Expand Down
2 changes: 1 addition & 1 deletion config/FpConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ typedef FwIndexType FwQueueSizeType;

// Specifies the size of the buffer attached to state machine signals.
#ifndef FW_SM_SIGNAL_BUFFER_MAX_SIZE
#define FW_SM_SIGNAL_BUFFER_MAX_SIZE 128
#define FW_SM_SIGNAL_BUFFER_MAX_SIZE 128 // Not to exceed size of NATIVE_UINT_TYPE
#endif

// Specifies the size of the buffer that contains the serialized command arguments.
Expand Down

0 comments on commit 9d34778

Please sign in to comment.