summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-03 22:14:19 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-03 22:14:19 +0000
commit6bed75b41f24d98d293cd6dfb4a01e9cae34dd8f (patch)
tree32abfbe45d3e3adf1e3665fd3f615d586a7c29f3
parent426f72117b4557b2d348eddcb2e89e90eff77270 (diff)
Fix issue with using static_cast instead of reinterpret_cast for Extensible, allows for more than just char pointers to be used for Extensible.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2311 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--include/services.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/services.h b/include/services.h
index a2c9db2ab..25e9528c8 100644
--- a/include/services.h
+++ b/include/services.h
@@ -328,7 +328,7 @@ class CoreExport Extensible
* the return value is a std::pair of an iterator to the
* element, and a bool saying if it was actually inserted.
*/
- return this->Extension_Items.insert(std::make_pair(key, static_cast<char *>(p))).second;
+ return this->Extension_Items.insert(std::make_pair(key, reinterpret_cast<char *>(p))).second;
}
/** Extend an Extensible class.