-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Testing with configured fixed-size types #3409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| const FwIndexType portNum = queueNum - ((queueType == QueueType::COM_QUEUE) ? 0 : COM_PORT_COUNT); | ||
| FW_ASSERT((queueType == QueueType::COM_QUEUE) || (queueNum >= COM_PORT_COUNT), | ||
| static_cast<FwAssertArgType>(queueType), static_cast<FwAssertArgType>(queueNum)); | ||
| const FwIndexType portNum = static_cast<FwIndexType>(queueNum - ((queueType == QueueType::COM_QUEUE) ? 0 : COM_PORT_COUNT)); |
Check warning
Code scanning / CodeQL
Unchecked function argument Warning
| QueueInterface::Status Queue::send(const U8* buffer, | ||
| FwSizeType size, | ||
| PlatformIntType priority, | ||
| FwQueuePriorityType priority, |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
| QueueInterface::BlockingType blockType, | ||
| FwSizeType& actualSize, | ||
| PlatformIntType& priority) { | ||
| FwQueuePriorityType& priority) { |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
|
|
||
| QueueInterface::Status Queue::send(const Fw::SerializeBufferBase& message, | ||
| PlatformIntType priority, | ||
| FwQueuePriorityType priority, |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
| QueueInterface::Status Queue::receive(Fw::SerializeBufferBase& destination, | ||
| QueueInterface::BlockingType blockType, | ||
| PlatformIntType& priority) { | ||
| FwQueuePriorityType& priority) { |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
| void ComQueue::buffQueueIn_handler(const FwIndexType portNum, Fw::Buffer& fwBuffer) { | ||
| const FwIndexType queueNum = portNum + COM_PORT_COUNT; | ||
| FW_ASSERT(std::numeric_limits<FwIndexType>::max() - COM_PORT_COUNT > portNum); | ||
| const FwIndexType queueNum = static_cast<FwIndexType>(portNum + COM_PORT_COUNT); |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
| const FwIndexType portNum = queueNum - ((queueType == QueueType::COM_QUEUE) ? 0 : COM_PORT_COUNT); | ||
| FW_ASSERT((queueType == QueueType::COM_QUEUE) || (queueNum >= COM_PORT_COUNT), | ||
| static_cast<FwAssertArgType>(queueType), static_cast<FwAssertArgType>(queueNum)); | ||
| const FwIndexType portNum = static_cast<FwIndexType>(queueNum - ((queueType == QueueType::COM_QUEUE) ? 0 : COM_PORT_COUNT)); |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
| // this size. | ||
| static const FwSizeType DP_MAX_DIRECTORIES = 2; | ||
| static const FwSizeType DP_MAX_FILES = 1000; | ||
| static const FwIndexType DP_MAX_DIRECTORIES = 2; |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
| static const FwSizeType DP_MAX_DIRECTORIES = 2; | ||
| static const FwSizeType DP_MAX_FILES = 1000; | ||
| static const FwIndexType DP_MAX_DIRECTORIES = 2; | ||
| static const FwIndexType DP_MAX_FILES = 127; |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
|
|
||
| // extract metadata for each file | ||
| for (FwNativeUIntType file = 0; file < filesRead; file++) { | ||
| for (FwSizeType file = 0; file < filesRead; file++) { |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
kevin-f-ortega
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Only comment is to use PlatformTaskPriorityType in the OSAL::Task code. That is captured here #3410 and will be addressed in a future PR. This is good for now.
* Testing with configured fixed-size types * Linux fixes * Final settings * Removing FwNativeIntType
Change Description
Fixes issues using configured fixed-size types!