From 14f1d46a8d4d0451138bca4b048401b16ee8445e Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 7 Mar 2019 15:18:16 +0100 Subject: Fixed pong to compile with clang --- example/pong.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/pong.cpp') diff --git a/example/pong.cpp b/example/pong.cpp index 21d0d43..d93bc1a 100644 --- a/example/pong.cpp +++ b/example/pong.cpp @@ -37,7 +37,7 @@ public: class edge : public cObject { public: - edge(unsigned int x, unsigned int y) { setSize(x,y); drawLine('#', {0,0},{x-1,y-1}, true, _COL_DEFAULT);} + edge(unsigned int x, unsigned int y) { setSize(x,y); drawLine('#', {0,0},{(int)x-1,(int)y-1}, true, _COL_DEFAULT);} ~edge() { destruct(); } virtual int onCollisionPassive(sPos _hit) { -- cgit v1.2.3