Skip to content

Commit 40300d4

Browse files
author
devsh
committed
fix a silly typo
1 parent 9e7a8ea commit 40300d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/asset/material_compiler3/CNodePool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ class CNodePool : public core::IReferenceCounted
258258
const auto hiAddr = getChunkIx(h);
259259
assert(hiAddr<m_chunks.size());
260260
{
261-
const auto loAddr = h.value&(0x1u<<m_chunkSizeLog2);
261+
const auto loAddr = h.value&((0x1u<<m_chunkSizeLog2)-1);
262262
void* ptr = m_chunks[hiAddr].m_data+loAddr;
263263
if constexpr (std::is_void_v<T>)
264264
return ptr;

0 commit comments

Comments
 (0)