mirror of
https://github.com/nicbarker/clay.git
synced 2026-07-25 04:18:37 +00:00
[Core] Fix C++ cast issue
This commit is contained in:
parent
f27ddf3eed
commit
99502d1bc5
1 changed files with 1 additions and 1 deletions
2
clay.h
2
clay.h
|
|
@ -4484,7 +4484,7 @@ Clay_RenderCommandArray Clay_EndLayout(float deltaTime) {
|
|||
// Otherwise, just attach to the root as a floating element
|
||||
} else {
|
||||
Clay__LayoutElementTreeRootArray_Add(&context->layoutElementTreeRoots, CLAY__INIT(Clay__LayoutElementTreeRoot) {
|
||||
.layoutElementIndex = data->elementThisFrame - context->layoutElements.internalArray,
|
||||
.layoutElementIndex = (int32_t)(data->elementThisFrame - context->layoutElements.internalArray),
|
||||
.parentId = Clay__HashString(CLAY_STRING("Clay__RootContainer"), 0).id,
|
||||
.zIndex = 1,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue