summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/PropertyOffset.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/runtime/PropertyOffset.h')
-rw-r--r--Source/JavaScriptCore/runtime/PropertyOffset.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/JavaScriptCore/runtime/PropertyOffset.h b/Source/JavaScriptCore/runtime/PropertyOffset.h
index c0d1316c4..3883d910f 100644
--- a/Source/JavaScriptCore/runtime/PropertyOffset.h
+++ b/Source/JavaScriptCore/runtime/PropertyOffset.h
@@ -118,7 +118,7 @@ inline size_t offsetInOutOfLineStorage(PropertyOffset offset)
{
validateOffset(offset);
ASSERT(isOutOfLineOffset(offset));
- return offset - firstOutOfLineOffset;
+ return -static_cast<ptrdiff_t>(offset - firstOutOfLineOffset) - 2;
}
inline size_t offsetInRespectiveStorage(PropertyOffset offset)