From 7433897aef2713a4bc5e60022ae0775051fa7409 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 21 Feb 2018 15:13:56 +0000 Subject: [PATCH] [Minor] Use unsigned values when reading data from sqlite --- src/lua/lua_sqlite3.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lua/lua_sqlite3.c b/src/lua/lua_sqlite3.c index 4cb900dd9..bb1fcdeba 100644 --- a/src/lua/lua_sqlite3.c +++ b/src/lua/lua_sqlite3.c @@ -222,11 +222,12 @@ lua_sqlite3_push_row (lua_State *L, sqlite3_stmt *stmt) switch (type) { case SQLITE_INTEGER: - /* XXX: we represent int64 as strings, as we can nothing else to do + /* + * XXX: we represent int64 as strings, as we can nothing else to do * about it portably */ num = sqlite3_column_int64 (stmt, i); - rspamd_snprintf (numbuf, sizeof (numbuf), "%L", num); + rspamd_snprintf (numbuf, sizeof (numbuf), "%uL", num); lua_pushstring (L, numbuf); break; case SQLITE_FLOAT: -- 2.39.5