c: silence warnings

This commit is contained in:
William Casarin
2023-01-01 10:30:40 -08:00
parent 9666180db5
commit b65d9a49ff
4 changed files with 6 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ static inline bool assign_overflow_u16(u16 *dst, uint64_t v)
static inline bool assign_overflow_u32(u32 *dst, uint64_t v)
{
*dst = v;
*dst = (u32)v;
return *dst == v;
}
#endif /* LIGHTNING_COMMON_OVERFLOWS_H */