Ignore:
Timestamp:
May 20, 2000, 3:48:23 PM (25 years ago)
Author:
jeroen
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/opengl/glut/glutint.h

    r3086 r3579  
    1 /* $Id: glutint.h,v 1.7 2000-03-11 17:07:46 sandervl Exp $ */
     1/* $Id: glutint.h,v 1.8 2000-05-20 13:48:23 jeroen Exp $ */
    22#ifndef __glutint_h__
    33#define __glutint_h__
     
    9393  } else { \
    9494    (dest).tv_sec = (src1).tv_sec + (src2).tv_sec; \
    95     if(((dest).tv_sec >= 1) && (((dest).tv_usec <0))) { \
     95    if(((dest).tv_sec >= 1) && (((LONG)(dest).tv_usec <0))) { \
    9696      (dest).tv_sec --;(dest).tv_usec += 1000000; \
    9797    } \
     
    9999}
    100100#define TIMEDELTA(dest, src1, src2) { \
    101   if(((dest).tv_usec = (src1).tv_usec - (src2).tv_usec) < 0) { \
     101  if((LONG)((dest).tv_usec = (src1).tv_usec - (src2).tv_usec) < 0) { \
    102102    (dest).tv_usec += 1000000; \
    103103    (dest).tv_sec = (src1).tv_sec - (src2).tv_sec - 1; \
Note: See TracChangeset for help on using the changeset viewer.