Fix sizeof typo in MessageWriter::GetRelativeIndex (#40276)
sizeof(index) incorrectly resolved to a C library function type instead of the Index parameter, causing a build error on Linux. Fix the casing to match the parameter name. Introduced in 58bd525a (#40197). Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Ben Hillis committed
Apr 22, 2026 at 17:08 UTC
552a9cda18226b9a85c24ea7b7537c4d4aec3492
1 file changed
+1
-1
src/shared/inc/message.h
+1
-1
@@ -171,7 +171,7 @@ private:
171
const auto* bufferStart = reinterpret_cast<char*>(m_buffer.data());
172
173
// Validate that 'Index' is actually within the bounds of our buffer
174
- assert(indexPtr >= bufferStart && indexPtr + sizeof(index) <= bufferStart + m_buffer.size());
174
+ assert(indexPtr >= bufferStart && indexPtr + sizeof(Index) <= bufferStart + m_buffer.size());
175
176
return static_cast<size_t>(indexPtr - bufferStart);
177
}