Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h

Issue 2318383002: Submit CompositorFrame from worker (Closed)
Patch Set: Remove a TODO comment Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h b/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h
index a6f60a45095f68d054051501e960cd1aa84bc575..8e860c5d72147800ddbac6ea2ead012304892a74 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h
@@ -540,7 +540,7 @@ private:
if (m_position >= m_length)
return false;
currentByte = m_buffer[m_position++];
- *value |= ((currentByte & SerializedScriptValue::varIntMask) << shift);
+ *value |= (static_cast<T>(currentByte & SerializedScriptValue::varIntMask) << shift);
shift += SerializedScriptValue::varIntShift;
} while (currentByte & (1 << SerializedScriptValue::varIntShift));
return true;

Powered by Google App Engine
This is Rietveld 408576698