X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdots.c;h=a5ddcaad58884dd668b8b5455e96ca5630ad1302;hp=13ec66a570929ba8a5ed39686da21df9a2edb4ee;hb=b1f61d9f3aa244512045a6b02e759825d7049d34;hpb=0eb88fc5281804773e2a0c7a488a4452463535ce diff --git a/test/dots.c b/test/dots.c index 13ec66a5..a5ddcaad 100644 --- a/test/dots.c +++ b/test/dots.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1999 Free Software Foundation, Inc. * + * Copyright (c) 1999,2000 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -29,7 +29,7 @@ /* * Author: Thomas E. Dickey 1999 * - * $Id: dots.c,v 1.2 1999/10/23 13:24:32 tom Exp $ + * $Id: dots.c,v 1.4 2000/02/13 01:05:13 tom Exp $ * * A simple demo of the terminfo interface. */ @@ -125,7 +125,7 @@ main( tputs(tparm(cursor_address, y, x), 1, outc); if (max_colors > 0) { - z = ranf() * max_colors; + z = (int)(ranf() * max_colors); if (ranf() > 0.01) { tputs(tparm(set_a_foreground, z), 1, outc); } else {