aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-21 15:13:56 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-21 15:13:56 +0000
commit7433897aef2713a4bc5e60022ae0775051fa7409 (patch)
treeb81cb82524a6f7306a09ce5fcffc30748a75acf0 /src/lua
parent47772280af710ec922ad7d8fa6359df79fea10e2 (diff)
downloadrspamd-7433897aef2713a4bc5e60022ae0775051fa7409.tar.gz
rspamd-7433897aef2713a4bc5e60022ae0775051fa7409.zip
[Minor] Use unsigned values when reading data from sqlite
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_sqlite3.c5
1 files 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: