summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sord.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sord.c b/src/sord.c
index 228bbac..8c92b67 100644
--- a/src/sord.c
+++ b/src/sord.c
@@ -635,8 +635,9 @@ sord_best_index(SordModel* sord,
{
const bool graph_search = (pat[TUP_G] != 0);
- const unsigned sig = (pat[0] ? 1 : 0) * 0x100U + (pat[1] ? 1 : 0) * 0x010U +
- (pat[2] ? 1 : 0) * 0x001U;
+ const unsigned sig = ((pat[0] ? 1 : 0) * 0x100U) +
+ ((pat[1] ? 1 : 0) * 0x010U) +
+ ((pat[2] ? 1 : 0) * 0x001U);
SordOrder good[2] = {(SordOrder)-1, (SordOrder)-1};