Changeset 37893 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Oct 25, 2008, 1:21:23 PM (17 years ago)
Author:
[email protected]
Message:

2008-10-25 Geoffrey Garen <[email protected]>

Not reviewed.


Try to fix Windows build.

  • VM/SamplingTool.h: (JSC::SamplingTool::encodeSample): Explicitly cast bool to int, to silence compiler warning.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r37891 r37893  
     12008-10-25  Geoffrey Garen  <[email protected]>
     2
     3        Not reviewed.
     4       
     5        Try to fix Windows build.
     6
     7        * VM/SamplingTool.h:
     8        (JSC::SamplingTool::encodeSample): Explicitly cast bool to int, to
     9        silence compiler warning.
     10
    1112008-10-25  Geoffrey Garen  <[email protected]>
    212
  • trunk/JavaScriptCore/VM/SamplingTool.h

    r37891 r37893  
    161161        {
    162162            ASSERT(!(reinterpret_cast<intptr_t>(vPC) & 0x3));
    163             return reinterpret_cast<intptr_t>(vPC) | (inCTIFunction << 1) | inHostFunction;
     163            return reinterpret_cast<intptr_t>(vPC) | (static_cast<intptr_t>(inCTIFunction) << 1) | static_cast<intptr_t>(inHostFunction);
    164164        }
    165165
Note: See TracChangeset for help on using the changeset viewer.