Skip to content

Resolve routeid msgid comparison issue reported by LGTM #1069

@skliper

Description

@skliper

Is your feature request related to a problem? Please describe.
Comparison between routeidx of type CFE_SB_RouteId_Atom_t and endidx of wider type CFE_SB_MsgId_Atom_t.
This alert was introduced in0c4f5d82 months ago

for (routeidx = startidx; routeidx < endidx; routeidx++)

Describe the solution you'd like
This was implemented when there were two foreach functions, but foreach msgid was removed due to being a resource hog. Really don't need a separate helper function anymore and types can be made consistent.

Describe alternatives you've considered
None

Additional context
None

Requester Info
Jacob Hageman - NASA/GSFC

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions