Style fix: remove C style cast in Instruction.h
authorsbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Mar 2019 19:45:42 +0000 (19:45 +0000)
committersbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Mar 2019 19:45:42 +0000 (19:45 +0000)
https://bugs.webkit.org/show_bug.cgi?id=195917

Reviewed by Filip Pizlo.

* bytecode/Instruction.h:
(JSC::Instruction::wide const):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243162 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/bytecode/Instruction.h

index 58ea9cf..02cb3f2 100644 (file)
@@ -1,3 +1,13 @@
+2019-03-19  Saam Barati  <sbarati@apple.com>
+
+        Style fix: remove C style cast in Instruction.h
+        https://bugs.webkit.org/show_bug.cgi?id=195917
+
+        Reviewed by Filip Pizlo.
+
+        * bytecode/Instruction.h:
+        (JSC::Instruction::wide const):
+
 2019-03-19  Devin Rousso  <drousso@apple.com>
 
         Web Inspector: Provide $event in the console when paused on an event listener
index cb826cd..fb278e9 100644 (file)
@@ -110,7 +110,7 @@ public:
     {
 
         ASSERT(isWide());
-        return reinterpret_cast<const Impl<OpcodeSize::Wide>*>((uintptr_t)this + 1);
+        return reinterpret_cast<const Impl<OpcodeSize::Wide>*>(bitwise_cast<uintptr_t>(this) + 1);
     }
 };