summaryrefslogtreecommitdiff
path: root/modules/database/db_redis.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-17 23:20:24 -0400
committerAdam <Adam@anope.org>2013-05-17 23:20:24 -0400
commitca93122a68651302dd556c5b4708e4a34e7a37a2 (patch)
tree2c7fc38f8f190b1e60996d813de5a6327dffd32d /modules/database/db_redis.cpp
parent2428264315868f0860f9747c8b005536e5442db6 (diff)
You would think my compiler would at least warn me about this. but no.
Diffstat (limited to 'modules/database/db_redis.cpp')
-rw-r--r--modules/database/db_redis.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/database/db_redis.cpp b/modules/database/db_redis.cpp
index 03c7dabca..1abc6d684 100644
--- a/modules/database/db_redis.cpp
+++ b/modules/database/db_redis.cpp
@@ -253,10 +253,10 @@ void TypeLoader::OnResult(const Reply &r)
if (reply.type != Reply::BULK)
continue;
- int64_t i;
+ int64_t id;
try
{
- i = convertTo<int64_t>(reply.bulk);
+ id = convertTo<int64_t>(reply.bulk);
}
catch (const ConvertException &)
{
@@ -265,9 +265,9 @@ void TypeLoader::OnResult(const Reply &r)
std::vector<Anope::string> args;
args.push_back("HGETALL");
- args.push_back("hash:" + this->type + ":" + stringify(i));
+ args.push_back("hash:" + this->type + ":" + stringify(id));
- me->redis->SendCommand(new ObjectLoader(me, this->type, i), args);
+ me->redis->SendCommand(new ObjectLoader(me, this->type, id), args);
}
delete this;