mirror of
https://github.com/mfontanini/libtins
synced 2026-01-28 04:34:27 +01:00
Fixed lots of warnings in test cases, due to narrowing conversions.
This commit is contained in:
@@ -68,7 +68,6 @@ void Dot1Q::cfi(small_uint<1> new_cfi) {
|
||||
}
|
||||
|
||||
void Dot1Q::id(small_uint<12> new_id) {
|
||||
uint16_t value = new_id;
|
||||
_header.idL = new_id & 0xff;
|
||||
_header.idH = new_id >> 8;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user