diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-03-07 04:03:53 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-03-07 04:03:53 +0100 |
commit | 82f2f59b49f15107b6ce43a79d72231cb490f5f2 (patch) | |
tree | 34c5c4530503b1ae3d6e693f5d72099678ed4e86 /example | |
parent | c5f481afde4483e1828efd1f59d1f0c9fa1f792b (diff) | |
download | termgl-82f2f59b49f15107b6ce43a79d72231cb490f5f2.tar.gz |
Moved to clang
Diffstat (limited to 'example')
-rw-r--r-- | example/Makefile | 4 | ||||
-rw-r--r-- | example/test.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/example/Makefile b/example/Makefile index 0889694..85d9d5b 100644 --- a/example/Makefile +++ b/example/Makefile @@ -1,5 +1,5 @@ -CC = /usr/bin/g++ -CFLAGS = -Wall -g -std=c++11 +CC = /usr/bin/clang +CFLAGS = -Wall -g -std=c++11 -lstdc++ LIBDIR = ../build/lib INCDIR = ../build/inc diff --git a/example/test.cpp b/example/test.cpp index aebca71..afef931 100644 --- a/example/test.cpp +++ b/example/test.cpp @@ -26,7 +26,7 @@ private: 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) { |