Commit 5fff876c authored by Olivier Crête's avatar Olivier Crête

candidate: Use explicit 64-bit constants to make 32-bit gcc happy

parent f55c780e
...@@ -163,8 +163,11 @@ nice_candidate_pair_priority (guint32 o_prio, guint32 a_prio) ...@@ -163,8 +163,11 @@ nice_candidate_pair_priority (guint32 o_prio, guint32 a_prio)
{ {
guint32 max = o_prio > a_prio ? o_prio : a_prio; guint32 max = o_prio > a_prio ? o_prio : a_prio;
guint32 min = o_prio < a_prio ? o_prio : a_prio; guint32 min = o_prio < a_prio ? o_prio : a_prio;
/* These two constants are here explictly to make some version of GCC happy */
const guint64 one = 1;
const guint64 thirtytwo = 32;
return ((guint64)1 << 32) * min + 2 * max + (o_prio > a_prio ? 1 : 0); return (one << thirtytwo) * min + 2 * max + (o_prio > a_prio ? 1 : 0);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment