From 5095617d6c53081521efb673823946cbfc183753 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 29 Mar 2026 13:34:14 +0100 Subject: Avoid the direct use of intptr_t wherever possible. This may cause problems on systems like CheriBSD where the pointer type stores extra data. --- modules/ircv3_batch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/ircv3_batch.cpp') diff --git a/modules/ircv3_batch.cpp b/modules/ircv3_batch.cpp index adffff14d..940109eef 100644 --- a/modules/ircv3_batch.cpp +++ b/modules/ircv3_batch.cpp @@ -66,7 +66,7 @@ class IRCv3::Batch::ManagerImpl final Cap::Capability cap; ClientProtocol::EventProvider protoevprov; - IntExtItem batchbits; + NumExtItem batchbits; BatchList active_batches; bool unloading = false; @@ -77,7 +77,7 @@ class IRCv3::Batch::ManagerImpl final Batch& batch = *static_cast(tagdata.provdata); // Check if this is the first message the user is getting that is part of the batch - const intptr_t bits = batchbits.Get(user); + const auto bits = batchbits.Get(user); if (!(bits & batch.GetBit())) { // Send the start batch command ("BATCH +reftag TYPE"), remember the user so we can send them a @@ -124,7 +124,7 @@ public: void RemoveFromAll(LocalUser* user) { - const intptr_t bits = batchbits.Get(user); + const auto bits = batchbits.Get(user); // User is quitting, remove them from all lists for (const auto& batch : active_batches) -- cgit v1.3.1-10-gc9f91