From 552b00e2c15129d6a4d11399ff3a9fb440a52503 Mon Sep 17 00:00:00 2001 From: Hiroki Gondo Date: Fri, 20 Jul 2018 20:30:41 +0900 Subject: [PATCH] lightningd: fix crash on rpc.invoice with clang There is a type mismatch of variable argument. --- lightningd/param.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/param.h b/lightningd/param.h index 1b3212377..2c5c37f6c 100644 --- a/lightningd/param.h +++ b/lightningd/param.h @@ -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.