We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c486627 + 8ffd335 commit 2c4e96cCopy full SHA for 2c4e96c
api/CanMsg.h
@@ -53,10 +53,10 @@ class CanMsg : public Printable
53
54
CanMsg(CanMsg const & other)
55
{
56
- this->id = other.id;
57
- this->data_length = other.data_length;
58
- if (this->data_length && other.data)
59
- memcpy(this->data, other.data, this->data_length);
+ id = other.id;
+ data_length = other.data_length;
+ if (data_length > 0)
+ memcpy(data, other.data, data_length);
60
}
61
62
virtual ~CanMsg() { }
@@ -65,10 +65,10 @@ class CanMsg : public Printable
65
66
if (this != &other)
67
68
69
70
71
72
73
return (*this);
74
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments