Skip to content

Commit f031db6

Browse files
committed
add comment and fix type to remove warning
1 parent ed42851 commit f031db6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

include/libdbc/message.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ namespace libdbc {
1111
Message() = delete;
1212
explicit Message(uint32_t id, const std::string& name, uint8_t size, const std::string& node);
1313

14+
/*!
15+
* \brief parseSignals
16+
* \param data
17+
* \param values
18+
* \return
19+
*/
1420
bool parseSignals(const std::vector<uint8_t> data, std::vector<double> &values) const;
1521

1622
void appendSignal(const Signal& signal);

src/message.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ namespace libdbc {
142142
std::sort(m_signals.begin(), m_signals.end());
143143

144144
uint32_t curr_bit = 0;
145-
for (int i=0; i < m_signals.size(); i++) {
145+
for (std::vector<Signal>::size_type i=0; i < m_signals.size(); i++) {
146146
const auto& signal = m_signals.at(i);
147147
if (signal.is_multiplexed)
148148
break; // Not supported yet

0 commit comments

Comments
 (0)