Add explicit cast to silence warning

This commit is contained in:
Bach Le 2026-04-13 04:52:22 +07:00
parent 451ea281f7
commit 2559235605

2
clay.h
View file

@ -4499,7 +4499,7 @@ Clay_RenderCommandArray Clay_EndLayout(float deltaTime) {
Clay__LayoutElementTreeRootArray_Add(&context->layoutElementTreeRoots, CLAY__INIT(Clay__LayoutElementTreeRoot) {
.layoutElementIndex = (int32_t)(data->elementThisFrame - context->layoutElements.internalArray),
.parentId = floatingConfig->attachTo != CLAY_ATTACH_TO_NONE ? floatingConfig->parentId : Clay__HashString(CLAY_STRING("Clay__RootContainer"), 0).id,
.zIndex = floatingConfig->attachTo != CLAY_ATTACH_TO_NONE ? floatingConfig->zIndex : 1,
.zIndex = floatingConfig->attachTo != CLAY_ATTACH_TO_NONE ? floatingConfig->zIndex : (int16_t)1,
});
}
// Parent exited, just delete child without exit transition