Skip to content

Commit 90b4b0d

Browse files
committed
float cast to appease C++
1 parent 843b5bf commit 90b4b0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clay.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,10 +1952,10 @@ void Clay__SizeContainersAlongAxis(bool xAxis) {
19521952

19531953
static inline Clay_BoundingBox Clay__BoundingBoxWithRoundedValues(float x, float y, float width, float height) {
19541954
return CLAY__INIT(Clay_BoundingBox) {
1955-
(int32_t)(x + (x > 0 ? 0.5f : -0.5f)),
1956-
(int32_t)(y + (y > 0 ? 0.5f : -0.5f)),
1957-
(int32_t)(width + (width > 0 ? 0.5f : -0.5f)),
1958-
(int32_t)(height + (height > 0 ? 0.5f : -0.5f))
1955+
(float)(int32_t)(x + (x > 0 ? 0.5f : -0.5f)),
1956+
(float)(int32_t)(y + (y > 0 ? 0.5f : -0.5f)),
1957+
(float)(int32_t)(width + (width > 0 ? 0.5f : -0.5f)),
1958+
(float)(int32_t)(height + (height > 0 ? 0.5f : -0.5f))
19591959
};
19601960
}
19611961

0 commit comments

Comments
 (0)