delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/06/27/06:09:13

From: "Tom Demmer" <DEMMER AT brain1 DOT lstm DOT ruhr-uni-bochum DOT de>
Organization: Lehrstuhl Stroemungsmechanik, RUB
To: terra AT diku DOT dk, djgpp-workers AT delorie DOT com
Date: Thu, 27 Jun 1996 12:02:43 GMT-1
Subject: Bug in select.c
Reply-to: Demmer AT LStM DOT Ruhr-Uni-Bochum DOT De
Message-ID: <DA5DF80A5E@brain1.lstm.ruhr-uni-bochum.de>

It's always this stupid little = and == stuff....
Sorry Morten, I had the wrong guess about where to search for the bug.


*** compat/time/select.old  Sun Nov 26 05:46:14 1995
--- compat/time/select.c    Thu Jun 27 17:00:08 1996
***************
*** 233,239 ****
      {
        gettimeofday (&now, 0);
        if (now.tv_sec > then.tv_sec
!     || (now.tv_sec = then.tv_sec && now.tv_usec >= then.tv_usec))
    return 0;
      }
  
--- 233,239 ----
      {
        gettimeofday (&now, 0);
        if (now.tv_sec > then.tv_sec
!       || (now.tv_sec == then.tv_sec && now.tv_usec >= then.tv_usec))
    return 0;
      }
  
--------------
Ciao
Tom

  ******************************************************************
  *  Thomas Demmer                     * Phone : +49 234 700 6434  *
  *  Universitaetsstr. 150             * or you try                *
  *  Lehrstuhl fuer Stroemungsmechanik *         +49 234 700 2896  *
  *  D-44780 Bochum                    * and MIGHT get someone who *
  *                                    * knows where I am          *
  *  Demmer AT LStM DOT Ruhr-Uni-Bochum DOT De    * Fax    : +49 234 709-4162 *
  *          http://www.lstm.ruhr-uni-bochum.de/~demmer            *
  ******************************************************************

    Sometimes I lie awake at night and wonder "Why me?" 
    And a voice says "Nothing personal, your name was 
    on the list just by chance"
                              -- Charlie Brown

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019