diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2011-10-24 16:32:29 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2011-10-24 16:32:29 -0400 |
commit | 377a7a968b6a906f262a45abea9a563ffc471938 (patch) | |
tree | 3743f5d564bd7b40db5659bf6e18dd102b5c5c19 /modules/database/db_sql_live_write.cpp | |
parent | d0513d6506ce34b57874ad265daf38ca67878aa0 (diff) |
Fixed bug #1349 (m_sqlite compiles without error under FreeBSD), as well as use C99's stdint.h (or cstdint if available) to get (u)intX_t types instead of our stupid typedefs. pstdint.h included in case there is no cstdint or stdint.h available.
Diffstat (limited to 'modules/database/db_sql_live_write.cpp')
-rw-r--r-- | modules/database/db_sql_live_write.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/database/db_sql_live_write.cpp b/modules/database/db_sql_live_write.cpp index 769c53b66..5d15d14d3 100644 --- a/modules/database/db_sql_live_write.cpp +++ b/modules/database/db_sql_live_write.cpp @@ -63,11 +63,11 @@ static void ChanInfoUpdate(const Anope::string &name, const SQLResult &res) bi->Assign(NULL, ci); } - ci->capsmin = convertTo<int16>(res.Get(0, "capsmin")); - ci->capspercent = convertTo<int16>(res.Get(0, "capspercent")); - ci->floodlines = convertTo<int16>(res.Get(0, "floodlines")); - ci->floodsecs = convertTo<int16>(res.Get(0, "floodsecs")); - ci->repeattimes = convertTo<int16>(res.Get(0, "repeattimes")); + ci->capsmin = convertTo<int16_t>(res.Get(0, "capsmin")); + ci->capspercent = convertTo<int16_t>(res.Get(0, "capspercent")); + ci->floodlines = convertTo<int16_t>(res.Get(0, "floodlines")); + ci->floodsecs = convertTo<int16_t>(res.Get(0, "floodsecs")); + ci->repeattimes = convertTo<int16_t>(res.Get(0, "repeattimes")); if (ci->c) check_modes(ci->c); |