Fix coverity 402975 (#16058)
Bind value as 64bit
Stelios Fragkakis committed
Sep 27, 2023 at 15:13 UTC
e4c0a9fd4c445d997ee9bf7471095317d1ac9024
1 file changed
+1
-1
database/sqlite/sqlite_metadata.c
+1
-1
@@ -365,7 +365,7 @@ static int store_host_metadata(RRDHOST *host)
365
if (unlikely(rc != SQLITE_OK))
366
goto bind_fail;
367
368
- rc = sqlite3_bind_int(res, ++param, (int ) host->last_connected);
368
+ rc = sqlite3_bind_int64(res, ++param, (sqlite3_int64) host->last_connected);
369
if (unlikely(rc != SQLITE_OK))
370
goto bind_fail;
371