diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-03-07 15:18:16 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-03-07 15:18:16 +0100 |
commit | 14f1d46a8d4d0451138bca4b048401b16ee8445e (patch) | |
tree | 3b72098c669d8e52a5f6b2b2829bf2f652d7ef10 /example/pong.cpp | |
parent | 43ed87ab46a7fdf99ef02747b6d7f2bd15975271 (diff) | |
download | termgl-14f1d46a8d4d0451138bca4b048401b16ee8445e.tar.gz |
Fixed pong to compile with clang
Diffstat (limited to 'example/pong.cpp')
-rw-r--r-- | example/pong.cpp | 2 |
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) { |