diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2016-06-18 10:42:33 +0300 |
---|---|---|
committer | Tom Tsou <tom.tsou@ettus.com> | 2016-06-22 14:27:24 -0700 |
commit | f931cf226b3ce7a4133f3a49599d4c85a152466f (patch) | |
tree | ec3b6bd44b310a4d2a567f8898471dd0da3de749 /Transceiver52M/inband-signaling-usb | |
parent | e476231deb9212c58e3effa656c69d136f19070b (diff) |
radioDevice: GSMRATE macro must have parentheses around its definition.
So we had the following define:
#define GSMRATE 1625e3/6
Now, I wanted to use it in the following expression:
3.0/GSMRATE
which turns into:
3.0/1625e3/6
while what I really wanted is:
3.0/(1625e3/6) = 3.0/1625e3*6
To avoid this, all macros with calculations must be enclosed in parentheses.
Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
Diffstat (limited to 'Transceiver52M/inband-signaling-usb')
0 files changed, 0 insertions, 0 deletions