Skip to content

Commit 723fd44

Browse files
committed
change quant pointer cast
1 parent 6c1af7c commit 723fd44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbl/asset/interchange/CSTLMeshFileLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ SAssetBundle CSTLMeshFileLoader::loadAsset(IReadFile* _file, const IAssetLoader:
264264
uint8_t* ptr = ((uint8_t*)(vertexBuf->getPointer())) + i * vtxSize;
265265
memcpy(ptr, positions[i].pointer, 3 * 4);
266266

267-
((quant_normal_t*)((uint32_t*)(ptr + 12)))[0] = normal;
267+
*reinterpret_cast<quant_normal_t*>(ptr + 12) = normal;
268268

269269
if (hasColor)
270270
memcpy(ptr + 16, colors.data() + i / 3, 4);

0 commit comments

Comments
 (0)