summaryrefslogtreecommitdiff
path: root/cesar/hal
diff options
context:
space:
mode:
authorOlivier Dufour2013-06-14 13:49:06 +0200
committerOlivier Dufour2013-06-14 14:46:11 +0200
commitab2c26e01cfb1ff061ccea260006e8232a38b4e5 (patch)
tree067113838900f277b6b667cfe614f13e395ad4c7 /cesar/hal
parent29b4a1a304e394fe44ab8964429444416043e327 (diff)
parentd956631de58d0203999368de874a9215b48b624f (diff)
Merge branch 't4044-warnings' into eoc-t4044-warnings
Diffstat (limited to 'cesar/hal')
-rw-r--r--cesar/hal/phy/spoc/test/src/test_spoc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cesar/hal/phy/spoc/test/src/test_spoc.c b/cesar/hal/phy/spoc/test/src/test_spoc.c
index 0b6c45f4c8..9ba996cd15 100644
--- a/cesar/hal/phy/spoc/test/src/test_spoc.c
+++ b/cesar/hal/phy/spoc/test/src/test_spoc.c
@@ -51,13 +51,14 @@ test_spoc_analyse_tonemask (test_t t)
for (j = 0; j < 32; j++)
{
char test_name[32];
+ unsigned int phy_carrier_nb_mod32 = PHY_CARRIER_NB % 32;
snprintf (test_name, sizeof test_name, "begin %d end %d", i, j);
test_begin (t, test_name)
{
uint last_unmasked_expect;
memset (ti.tonemask, 0, sizeof ti.tonemask);
ti.tonemask[0] = ~(1u << i);
- if (PHY_CARRIER_NB % 32 == 0 || j < PHY_CARRIER_NB % 32)
+ if (!phy_carrier_nb_mod32 || j < phy_carrier_nb_mod32)
{
last_unmasked_expect = (PHY_TONEMASK_WORDS - 1) * 32 + j;
ti.tonemask[PHY_TONEMASK_WORDS - 1] = ~(1u << j);