]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tty/lib_twait.c
ncurses 5.7 - patch 20101225
[ncurses.git] / ncurses / tty / lib_twait.c
index 3091719cd79ca126f1201b8decc000bab24a647a..329ec29a019ffdfaecc9118f956176793e6c961b 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
 /****************************************************************************
- * Copyright (c) 1998-2008,2009 Free Software Foundation, Inc.              *
+ * Copyright (c) 1998-2009,2010 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            *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -70,7 +70,7 @@
 #endif
 #undef CUR
 
 #endif
 #undef CUR
 
-MODULE_ID("$Id: lib_twait.c,v 1.60 2009/04/18 21:01:13 tom Exp $")
+MODULE_ID("$Id: lib_twait.c,v 1.61 2010/12/25 23:43:58 tom Exp $")
 
 static long
 _nc_gettime(TimeType * t0, bool first)
 
 static long
 _nc_gettime(TimeType * t0, bool first)
@@ -386,7 +386,7 @@ _nc_timed_wait(SCREEN *sp MAYBE_UNUSED,
     returntime = _nc_gettime(&t0, FALSE);
 
     if (milliseconds >= 0)
     returntime = _nc_gettime(&t0, FALSE);
 
     if (milliseconds >= 0)
-       milliseconds -= (returntime - starttime);
+       milliseconds -= (int) (returntime - starttime);
 
 #ifdef NCURSES_WGETCH_EVENTS
     if (evl) {
 
 #ifdef NCURSES_WGETCH_EVENTS
     if (evl) {