rgb-cln/gossipd
Vasil Dimov 751df868c7 gossipd: fix compilation warnings with clang 10
```
clang10 -DBINTOPKGLIBEXECDIR="\"../libexec/c-lightning\"" -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -Werror -std=gnu11 -g -fstack-protector  -I ccan -I external/libwally-core/include/ -I external/libwally-core/src/secp256k1/include/ -I external/jsmn/ -I external/libbacktrace/ -I external/libbacktrace-build -I . -I/usr/local/include   -DCCAN_TAKE_DEBUG=1 -DCCAN_TAL_DEBUG=1 -DCCAN_JSON_OUT_DEBUG=1 -DSHACHAIN_BITS=48 -DJSMN_PARENT_LINKS   -DBUILD_ELEMENTS=1 -DBINTOPKGLIBEXECDIR="\"../libexec/c-lightning\""  -c -o gossipd/routing.o gossipd/routing.c
gossipd/routing.c:651:10: error: implicit conversion from 'unsigned long' to 'double' changes value
      from 18446744073709551615 to 18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
        if (r > UINT64_MAX)
              ~ ^~~~~~~~~~
```

It is ok to change the values because they are approximate anyway. Thus,
explicitly typecast to `double` to silence the warning without changing
behavior.

Changelog-None
2020-03-21 16:30:46 +10:30
..
test common/wireaddr: don't include lightningd/lightningd. 2020-02-27 14:16:16 +10:30
Makefile common: use struct onionreply. 2020-01-23 16:17:42 +10:30
broadcast.h gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00
gossip_generation.c common/wireaddr: don't include lightningd/lightningd. 2020-02-27 14:16:16 +10:30
gossip_generation.h gossipd: naming cleanups. 2019-09-20 06:55:00 +00:00
gossip_peerd_wire.csv gossipd: push our own gossip messages harder. 2019-10-14 15:00:37 -05:00
gossip_store.c connectd, gossipd: use per-peer logging. 2019-11-18 04:50:22 +00:00
gossip_store.csv wire-gen: move in-house wire delcarations to new format 2019-07-24 06:31:46 +00:00
gossip_store.h gossipd: set the push marker for our own messages. 2019-11-04 17:50:58 +01:00
gossip_wire.csv lightingd: do a local short_channel_id lookup for forwarding. 2020-02-28 09:44:47 +10:30
gossipd.c lightingd: do a local short_channel_id lookup for forwarding. 2020-02-28 09:44:47 +10:30
gossipd.h gossipd: remove chainparams local var. 2019-11-20 20:41:53 +01:00
queries.c gossipd: remove chainparams local var. 2019-11-20 20:41:53 +01:00
queries.h gossipd: hand (any) timestamps through to callback for query_channel_range. 2019-10-10 21:48:52 -05:00
routing.c gossipd: fix compilation warnings with clang 10 2020-03-21 16:30:46 +10:30
routing.h gossipd: remove chainparams local var. 2019-11-20 20:41:53 +01:00
seeker.c gossipd: don't crash if we have > 7000 stale short_channel_ids. 2019-11-21 04:21:38 +00:00
seeker.h gossipd: restore dev-suppress-gossip functionality. 2019-10-10 21:48:52 -05:00