lightningd: fix crash on rpc.invoice with clang

There is a type mismatch of variable argument.
This commit is contained in:
Hiroki Gondo 2018-07-20 20:30:41 +09:00 committed by Christian Decker
parent d84d358562
commit 552b00e2c1

View file

@ -96,7 +96,7 @@ typedef bool(*param_cb)(const char *buffer, const jsmntok_t *tok, void *arg);
(arg) + 0*sizeof((cb)((const char *)NULL, \
(const jsmntok_t *)NULL, \
(arg)) == true), \
((void)((*arg) = (def)), 0)
((void)((*arg) = (def)), (size_t)0)
/*
* For when you want an optional raw token.