Changeset 148641 in webkit


Ignore:
Timestamp:
Apr 17, 2013 3:57:33 PM (11 years ago)
Author:
mark.lam@apple.com
Message:

Fix broken build. Replaced a static const with a #define.
https://bugs.webkit.org/show_bug.cgi?id=114577.

Unreviewed.

  • runtime/Watchdog.cpp:

(JSC::Watchdog::Watchdog):
(JSC::Watchdog::isEnabled):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r148639 r148641  
     12013-04-17  Mark Lam  <mark.lam@apple.com>
     2
     3        Fix broken build. Replaced a static const with a #define.
     4        https://bugs.webkit.org/show_bug.cgi?id=114577.
     5
     6        Unreviewed.
     7
     8        * runtime/Watchdog.cpp:
     9        (JSC::Watchdog::Watchdog):
     10        (JSC::Watchdog::isEnabled):
     11
    1122013-04-17  Mark Lam  <mark.lam@apple.com>
    213
  • trunk/Source/JavaScriptCore/runtime/Watchdog.cpp

    r148639 r148641  
    3333namespace JSC {
    3434
    35 static const double noLimit = std::numeric_limits<double>::infinity();
     35#define NO_LIMIT std::numeric_limits<double>::infinity()
    3636
    3737Watchdog::Watchdog()
    3838    : m_timerDidFire(false)
    3939    , m_didFire(false)
    40     , m_limit(noLimit)
     40    , m_limit(NO_LIMIT)
    4141    , m_startTime(0)
    4242    , m_elapsedTime(0)
     
    136136bool Watchdog::isEnabled()
    137137{
    138     return (m_limit != noLimit);
     138    return (m_limit != NO_LIMIT);
    139139}
    140140
Note: See TracChangeset for help on using the changeset viewer.