From: Maxim Mamontov Date: Wed, 14 Sep 2011 11:55:43 +0000 (+0300) Subject: Shut up compilers X-Git-Tag: 2.408-rc1~67 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/63f3a66069c0d87abd7c3f713299591df66dac7e?hp=80575308ffe4ee59676acf2a3726e8fdc159fdd3 Shut up compilers --- diff --git a/projects/stargazer/plugins/store/mysql/mysql_store.cpp b/projects/stargazer/plugins/store/mysql/mysql_store.cpp index d2509eaf..859992e9 100644 --- a/projects/stargazer/plugins/store/mysql/mysql_store.cpp +++ b/projects/stargazer/plugins/store/mysql/mysql_store.cpp @@ -1859,8 +1859,8 @@ MYSQL_RES *res; MYSQL_ROW row; MYSQL * sock; -sprintf(qbuf,"SELECT * FROM messages WHERE login='%s' AND id=%lld LIMIT 1", - login.c_str(), id); +sprintf(qbuf,"SELECT * FROM messages WHERE login='%s' AND id=%llu LIMIT 1", + login.c_str(), static_cast(id)); if(MysqlGetQuery(qbuf,sock)) {