apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/time/win32 time.c
Date Sat, 31 Mar 2001 07:57:44 GMT
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));
   }
  
  
  

Mime
View raw message