From: Vsevolod Stakhov Date: Wed, 21 Feb 2018 15:13:56 +0000 (+0000) Subject: [Minor] Use unsigned values when reading data from sqlite X-Git-Tag: 1.7.0~155 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7433897aef2713a4bc5e60022ae0775051fa7409;p=thirdparty%2Frspamd.git [Minor] Use unsigned values when reading data from sqlite --- diff --git a/src/lua/lua_sqlite3.c b/src/lua/lua_sqlite3.c index 4cb900dd93..bb1fcdeba4 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: