Skip to content

Commit 3f3f7d2

Browse files
committed
waiter waiter! more explicit casting please
1 parent c8cd425 commit 3f3f7d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macos.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ inline bool keyDown(PlatformKey key, NSEvent* event)
5151
auto mousePos = [NSEvent mouseLocation];
5252

5353
return cocos2d::CCPoint{
54-
mousePos.x - windowFrame.origin.x,
55-
mousePos.y - windowFrame.origin.y
54+
static_cast<float>(mousePos.x - windowFrame.origin.x),
55+
static_cast<float>(mousePos.y - windowFrame.origin.y)
5656
} * scaleFactor;
5757
}
5858
}

0 commit comments

Comments
 (0)