Skip to content

Commit

Permalink
Fix build fail on 32bit OS.
Browse files Browse the repository at this point in the history
  • Loading branch information
arowser authored and niftynei committed Oct 22, 2019
1 parent 4d0c2e9 commit 0985c6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gossipd/routing.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ static void remove_chan_from_node(struct routing_state *rstate,
/* We make sure that free_chan is called on this chan! */
static void destroy_chan_check(struct chan *chan)
{
assert(chan->sat.satoshis == (u64)chan); /* Raw: dev-hack */
assert(chan->sat.satoshis == (unsigned long)chan); /* Raw: dev-hack */
}
#endif

Expand All @@ -507,7 +507,7 @@ void free_chan(struct routing_state *rstate, struct chan *chan)
uintmap_del(&rstate->chanmap, chan->scid.u64);

#if DEVELOPER
chan->sat.satoshis = (u64)chan; /* Raw: dev-hack */
chan->sat.satoshis = (unsigned long)chan; /* Raw: dev-hack */
#endif
tal_free(chan);
}
Expand Down Expand Up @@ -2979,7 +2979,7 @@ void remove_all_gossip(struct routing_state *rstate)
while ((c = uintmap_first(&rstate->chanmap, &index)) != NULL) {
uintmap_del(&rstate->chanmap, index);
#if DEVELOPER
c->sat.satoshis = (u64)c; /* Raw: dev-hack */
c->sat.satoshis = (unsigned long)c; /* Raw: dev-hack */
#endif
tal_free(c);
}
Expand Down

0 comments on commit 0985c6e

Please sign in to comment.