Index: src/gpu/gl/GrGLProgramDesc.cpp |
=================================================================== |
--- src/gpu/gl/GrGLProgramDesc.cpp (revision 12322) |
+++ src/gpu/gl/GrGLProgramDesc.cpp (working copy) |
@@ -105,7 +105,7 @@ |
memset(desc->header(), 0, kHeaderSize); |
} |
// write the key length |
- *desc->atOffset<uint32_t, kLengthOffset>() = newKeyLength; |
+ *desc->atOffset<uint32_t, kLengthOffset>() = SkToU32(newKeyLength); |
KeyHeader* header = desc->header(); |
EffectKey* effectKeys = desc->effectKeys(); |