From 92ff18c46e838f5500a2a72bd32eba877bce25ac Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Mon, 10 Mar 2003 04:13:06 +0000 Subject: [PATCH] Shapes example small correction. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4488 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/ocaml/check.list | 1 + Examples/ocaml/shapes/example.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Examples/ocaml/check.list b/Examples/ocaml/check.list index 47c82ad3a..0baabf8e9 100644 --- a/Examples/ocaml/check.list +++ b/Examples/ocaml/check.list @@ -4,3 +4,4 @@ std_string std_vector stl argout_ref +shapes diff --git a/Examples/ocaml/shapes/example.c b/Examples/ocaml/shapes/example.c index 7615f5317..ef6e86799 100644 --- a/Examples/ocaml/shapes/example.c +++ b/Examples/ocaml/shapes/example.c @@ -13,7 +13,7 @@ void draw_shape_coverage( shape *s, int div_x, int div_y ) { for( i = 0; i < 1.0; i += 1.0 / ((float)div_y) ) { for( j = 0; j < 1.0; j += 1.0 / ((float)div_x) ) { - if( s->cover( i,j ) ) putchar( 'x' ); else putchar( ' ' ); + if( s->cover( j,i ) ) putchar( 'x' ); else putchar( ' ' ); } printf( "\n" ); }