X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_altkeys.c;h=f2b07b1c8c90855c042fc6b8a7b9be2424e1d1cc;hp=9d46ac09befb6eab093dda7990498b9044d3c605;hb=0948e2c7ac34642a1f8a3a85000933bcbb258cff;hpb=396a05943b7da5039dd15d79c4385c7d2a75d6d4 diff --git a/test/demo_altkeys.c b/test/demo_altkeys.c index 9d46ac09..f2b07b1c 100644 --- a/test/demo_altkeys.c +++ b/test/demo_altkeys.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: demo_altkeys.c,v 1.8 2008/04/12 22:06:22 tom Exp $ + * $Id: demo_altkeys.c,v 1.9 2010/11/14 00:59:26 tom Exp $ * * Demonstrate the define_key() function. * Thomas Dickey - 2005/10/22 @@ -128,8 +128,8 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) #if HAVE_GETTIMEOFDAY gettimeofday(¤t, 0); - secs = current.tv_sec - previous.tv_sec; - msecs = (current.tv_usec - previous.tv_usec) / 1000; + secs = (int) (current.tv_sec - previous.tv_sec); + msecs = (int) ((current.tv_usec - previous.tv_usec) / 1000); if (msecs < 0) { msecs += 1000; --secs;