Bug 1266615 - Fix C4334 in imgFrame.cpp. r=padenot
authorXidorn Quan <quanxunzhen@gmail.com>
Fri, 22 Apr 2016 11:22:53 +1000
changeset 334435 bcfbc52d5b5db28cbd65253f9f56eddbc7bc2932
parent 334434 9f69fc58466ed28fd178c3328995cb5082dab809
child 334436 a45b816fdd30967d66d75d912cfea87ef2ab95ee
push id1146
push userCallek@gmail.com
push dateMon, 25 Jul 2016 16:35:44 +0000
treeherdermozilla-release@a55778f9cd5a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs1266615
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1266615 - Fix C4334 in imgFrame.cpp. r=padenot MozReview-Commit-ID: BYBRJoFBj0V
image/imgFrame.cpp
--- a/image/imgFrame.cpp
+++ b/image/imgFrame.cpp
@@ -70,17 +70,17 @@ CreateLockedSurface(VolatileBuffer* vbuf
 }
 
 static already_AddRefed<VolatileBuffer>
 AllocateBufferForImage(const IntSize& size, SurfaceFormat format)
 {
   int32_t stride = VolatileSurfaceStride(size, format);
   RefPtr<VolatileBuffer> buf = new VolatileBuffer();
   if (buf->Init(stride * size.height,
-                1 << gfxAlphaRecovery::GoodAlignmentLog2())) {
+                size_t(1) << gfxAlphaRecovery::GoodAlignmentLog2())) {
     return buf.forget();
   }
 
   return nullptr;
 }
 
 // Returns true if an image of aWidth x aHeight is allowed and legal.
 static bool