Browse Source

Avoid applying the unary minus operator to an unsigned value

fee-tracking2
practicalswift 6 years ago
committed by Rusty Russell
parent
commit
a46d712154
  1. 2
      channeld/full_channel.c

2
channeld/full_channel.c

@ -72,7 +72,7 @@ static void htlc_arr_append(const struct htlc ***arr, const struct htlc *htlc)
static s64 balance_adding_htlc(const struct htlc *htlc, enum side side)
{
if (htlc_owner(htlc) == side)
return -htlc->msatoshi;
return -(s64)htlc->msatoshi;
return 0;
}

Loading…
Cancel
Save