summaryrefslogtreecommitdiff
path: root/example/pong.cpp
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-07 15:18:16 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-07 15:18:16 +0100
commit14f1d46a8d4d0451138bca4b048401b16ee8445e (patch)
tree3b72098c669d8e52a5f6b2b2829bf2f652d7ef10 /example/pong.cpp
parent43ed87ab46a7fdf99ef02747b6d7f2bd15975271 (diff)
downloadtermgl-14f1d46a8d4d0451138bca4b048401b16ee8445e.tar.gz
Fixed pong to compile with clang
Diffstat (limited to 'example/pong.cpp')
-rw-r--r--example/pong.cpp2
1 files changed, 1 insertions, 1 deletions
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)
{