Ignore:
Timestamp:
Sep 26, 2002, 8:20:47 AM (23 years ago)
Author:
darin
Message:

Fix the infinity problem Dave worked around. We didn't have the
configuration flags set right to make infinity work. Setting those
properly made everything work without changes to min and max.

  • kjs/config.h: Define HAVE_FUNC_ISINF, HAVE_STRING_H, and also WORDS_BIGENDIAN (if on ppc).
  • kjs/math_object.cpp: (MathFuncImp::call): Roll out min and max changes from yesterday.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/math_object.cpp

    r2168 r2173  
    183183      if ( isNaN( val ) )
    184184      {
    185             result = NaN;
     185        result = NaN;
    186186        break;
    187187      }
    188       // Comparing a number to negative infinity doesn't work. 
    189       // -dwh
    190       if ( k == 0 || val > result )
     188      if ( val > result )
    191189        result = val;
    192190    }
     
    203201        break;
    204202      }
    205       // Comparing a number to positive infinity doesn't work. 
    206       // -dwh
    207       if ( k == 0 || val < result )
     203      if ( val < result )
    208204        result = val;
    209205    }
Note: See TracChangeset for help on using the changeset viewer.