mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 22:35:44 +00:00
made compiler happy
This commit is contained in:
parent
91bec0b1e3
commit
c5940d059c
7 changed files with 14 additions and 13 deletions
|
|
@ -32,7 +32,7 @@ struct PACListLeaf
|
|||
{
|
||||
TYPE sft = soft[1];
|
||||
for (int k = 0; k < TYPE::SIZE; ++k)
|
||||
if (conv(state+k, 0) != sft.v[k] < 0)
|
||||
if (conv(state+k, 0) != (sft.v[k] < 0))
|
||||
metric[k] += std::abs(sft.v[k]);
|
||||
TYPE hrd;
|
||||
for (int k = 0; k < TYPE::SIZE; ++k)
|
||||
|
|
@ -53,7 +53,7 @@ struct PACListLeaf
|
|||
for (int k = 0; k < TYPE::SIZE; ++k)
|
||||
sfork[2*k] = sfork[2*k+1] = state[k];
|
||||
for (int k = 0; k < 2*TYPE::SIZE; ++k)
|
||||
if (conv(sfork+k, k&1) != sft.v[k>>1] < 0)
|
||||
if (conv(sfork+k, k&1) != (sft.v[k>>1] < 0))
|
||||
mfork[k] += std::abs(sft.v[k>>1]);
|
||||
int perm[2*TYPE::SIZE];
|
||||
CODE::insertion_sort(perm, mfork, 2*TYPE::SIZE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue