diff options
| author | 2026-06-11 13:38:15 +0100 | |
|---|---|---|
| committer | 2026-06-11 13:49:21 +0100 | |
| commit | c316ad3e2d20393dbdff470f0c15394ae9d2814a (patch) | |
| tree | 87b1faaf54aa53feff1003cfacfc7155bffe1e20 /src/extensible.cpp | |
| parent | Fix a crash on shutdown. (diff) | |
Fix some warnings caused by CreateFakePointer with small types.
Diffstat (limited to 'src/extensible.cpp')
| -rw-r--r-- | src/extensible.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extensible.cpp b/src/extensible.cpp index 53f80a02e..1fa99b114 100644 --- a/src/extensible.cpp +++ b/src/extensible.cpp @@ -238,7 +238,7 @@ void BoolExtItem::Set(Extensible* container, bool sync) if (container->extype != this->extype) return; - auto ptr = CreateFakePointer(1); + auto ptr = CreateFakePointer<ssize_t>(1); SetRaw(container, ptr); if (sync && synced) Sync(container, ptr); @@ -251,7 +251,7 @@ void BoolExtItem::Unset(Extensible* container, bool sync) UnsetRaw(container); if (sync && synced) - Sync(container, CreateFakePointer(0)); + Sync(container, CreateFakePointer<ssize_t>(0)); } IntExtItem::IntExtItem(const WeakModulePtr& owner, const std::string& key, ExtensionType exttype, bool sync) |
