From ab1803d72fabf3d48b051b003f6e11220d6a334f Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Fri, 29 Apr 2022 22:12:55 +0100 Subject: [PATCH] Fix casting. --- plugins/persist-sqlite/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/persist-sqlite/plugin.c b/plugins/persist-sqlite/plugin.c index 299dce5a..809896ec 100644 --- a/plugins/persist-sqlite/plugin.c +++ b/plugins/persist-sqlite/plugin.c @@ -42,7 +42,7 @@ static int conf_parse_uint(const char *in, const char *name, unsigned int *value return MOSQ_ERR_INVAL; } - *value = v; + *value = (unsigned int)v; return MOSQ_ERR_SUCCESS; }