1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 04:34:27 +01:00

Fixed ternary operator associativity issue in dot11.h.

This commit is contained in:
Matias Fontanini
2012-12-03 20:56:47 -03:00
parent 53fe80d8a7
commit 647ba1f46e

View File

@@ -2689,7 +2689,9 @@ namespace Tins {
uint32_t write_ext_header(uint8_t *buffer, uint32_t total_sz);
uint32_t data_frame_size() { return sizeof(_ext_header) + (from_ds() && to_ds()) ? sizeof(_addr4) : 0; }
uint32_t data_frame_size() {
return sizeof(_ext_header) + ((from_ds() && to_ds()) ? sizeof(_addr4) : 0);
}
private:
ExtendedHeader _ext_header;
address_type _addr4;