We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e7a8ea commit 40300d4Copy full SHA for 40300d4
include/nbl/asset/material_compiler3/CNodePool.h
@@ -258,7 +258,7 @@ class CNodePool : public core::IReferenceCounted
258
const auto hiAddr = getChunkIx(h);
259
assert(hiAddr<m_chunks.size());
260
{
261
- const auto loAddr = h.value&(0x1u<<m_chunkSizeLog2);
+ const auto loAddr = h.value&((0x1u<<m_chunkSizeLog2)-1);
262
void* ptr = m_chunks[hiAddr].m_data+loAddr;
263
if constexpr (std::is_void_v<T>)
264
return ptr;
0 commit comments