Changeset 225536 in webkit


Ignore:
Timestamp:
Dec 5, 2017 1:40:57 PM (6 years ago)
Author:
pvollan@apple.com
Message:

[Win64] Compile error in testmasm.cpp.
https://bugs.webkit.org/show_bug.cgi?id=180436

Reviewed by Mark Lam.

Fix MSVC warning (32-bit shift implicitly converted to 64 bits).

  • assembler/testmasm.cpp:

(JSC::testGetEffectiveAddress):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r225524 r225536  
     12017-12-05  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [Win64] Compile error in testmasm.cpp.
     4        https://bugs.webkit.org/show_bug.cgi?id=180436
     5
     6        Reviewed by Mark Lam.
     7
     8        Fix MSVC warning (32-bit shift implicitly converted to 64 bits).
     9       
     10        * assembler/testmasm.cpp:
     11        (JSC::testGetEffectiveAddress):
     12
    1132017-12-01  Filip Pizlo  <fpizlo@apple.com>
    214
  • trunk/Source/JavaScriptCore/assembler/testmasm.cpp

    r225301 r225536  
    184184        jit.emitFunctionEpilogue();
    185185        jit.ret();
    186     }), pointer + offset + (1 << static_cast<int>(scale)) * length);
     186    }), pointer + offset + (static_cast<size_t>(1) << static_cast<int>(scale)) * length);
    187187}
    188188
Note: See TracChangeset for help on using the changeset viewer.