You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2001/03/31 09:57:44 UTC

cvs commit: apr/time/win32 time.c

wrowe       01/03/30 23:57:44

  Modified:    time/win32 time.c
  Log:
    Hmmm... on this (rare) point the castless caste looses :-/
  
  Revision  Changes    Path
  1.21      +4 -1      apr/time/win32/time.c
  
  Index: time.c
  ===================================================================
  RCS file: /home/cvs/apr/time/win32/time.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- time.c	2001/02/16 04:16:23	1.20
  +++ time.c	2001/03/31 07:57:44	1.21
  @@ -253,5 +253,8 @@
   
   APR_DECLARE(void) apr_sleep(apr_interval_time_t t)
   {
  -    Sleep(t/1000);
  +    /* One of the few sane situations for a cast, Sleep
  +     * is in ms, not us, and passed as a DWORD value
  +     */
  +    Sleep((DWORD)(t / 1000));
   }