Skip to content

Commit 2c41b8e

Browse files
committed
explicitly cast double to float
1 parent 1190d2d commit 2c41b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macos.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void mouseDownExec(EAGLView* self, SEL sel, NSEvent* event)
208208
geode::log::debug("mouse pos is ({}, {})", m.x, m.y);
209209

210210
cocos2d::CCSize winSize = cocos2d::CCDirector::sharedDirector()->getWinSize();
211-
cocos2d::CCPoint mousePos = cocos2d::CCPoint{ m.x, m.y };
211+
cocos2d::CCPoint mousePos = cocos2d::CCPoint{ static_cast<float>(m.x), static_cast<float>(m.y) };
212212

213213
// NSWindow's mouse origin is the bottom left
214214
// CCTouch's mouse origin is top left (because of course it is)

0 commit comments

Comments
 (0)