summaryrefslogtreecommitdiff
path: root/test/shape.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2007-05-20 00:01:06 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2007-05-20 00:01:06 +0000
commit73d01dd659f82f2c53fd7cedcf0bbb8d47f70ab2 (patch)
tree946d3744f22b87faf22f32cac8eed8619e53be55 /test/shape.cxx
parent9ca173a7020ca6a7daab001b71dfc6e84f149429 (diff)
Fix all compiler warnings from various build systems.
Fix vsnprintf() implementation to properly handle long and long long ints. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/shape.cxx')
-rw-r--r--test/shape.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/shape.cxx b/test/shape.cxx
index b64067bbd..ac298767d 100644
--- a/test/shape.cxx
+++ b/test/shape.cxx
@@ -60,8 +60,8 @@ void shape_window::draw() {
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(.5,.6,.7);
glBegin(GL_POLYGON);
- for (int i=0; i<sides; i++) {
- double ang = i*2*M_PI/sides;
+ for (int j=0; j<sides; j++) {
+ double ang = j*2*M_PI/sides;
glVertex3f(cos(ang),sin(ang),0);
}
glEnd();