aboutsummaryrefslogtreecommitdiffstats
path: root/src/extensible.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/extensible.cpp')
-rw-r--r--src/extensible.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extensible.cpp b/src/extensible.cpp
index 40af97236..e961f3dd9 100644
--- a/src/extensible.cpp
+++ b/src/extensible.cpp
@@ -25,13 +25,13 @@ namespace
{
// These templates are used by BoolExtItem and IntExtItem to allow storing a
// value within the pointer address of a shared pointer.
- template <typename T>
+ template <typename T = ssize_t>
ExtensionPtr CreateFakePointer(T value)
{
return ExtensionPtr(reinterpret_cast<void*>(value), [](auto*) { });
}
- template <typename T>
+ template <typename T = ssize_t>
T GetFakePointer(const ExtensionPtr* ptr)
{
return ptr ? reinterpret_cast<T>(ptr->get()) : T();