diff options
| author | 2026-03-29 13:34:14 +0100 | |
|---|---|---|
| committer | 2026-03-29 14:12:41 +0100 | |
| commit | 5095617d6c53081521efb673823946cbfc183753 (patch) | |
| tree | bd444f9c6b1a317500fc01902e6a1953a729bea9 /modules/ircv3_batch.cpp | |
| parent | Get rid of thismod/Parent in the mysql module. (diff) | |
Avoid the direct use of intptr_t wherever possible.
This may cause problems on systems like CheriBSD where the
pointer type stores extra data.
Diffstat (limited to 'modules/ircv3_batch.cpp')
| -rw-r--r-- | modules/ircv3_batch.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<size_t> batchbits; BatchList active_batches; bool unloading = false; @@ -77,7 +77,7 @@ class IRCv3::Batch::ManagerImpl final Batch& batch = *static_cast<Batch*>(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) |
