diff options
-rw-r--r-- | gpu/pgl/command_buffer_pepper.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gpu/pgl/command_buffer_pepper.cc b/gpu/pgl/command_buffer_pepper.cc index 53d67d2..323dc89 100644 --- a/gpu/pgl/command_buffer_pepper.cc +++ b/gpu/pgl/command_buffer_pepper.cc @@ -131,11 +131,11 @@ void CommandBufferPepper::SetGetOffset(int32 get_offset) { } int32 CommandBufferPepper::CreateTransferBuffer(size_t size) { - int32 id; + int32_t id; if (NPERR_NO_ERROR != device_->createBuffer(npp_, context_, size, &id)) return -1; - return id; + return static_cast<int32>(id); } void CommandBufferPepper::DestroyTransferBuffer(int32 id) { @@ -165,7 +165,7 @@ void CommandBufferPepper::SetParseError( } gpu::error::Error CommandBufferPepper::GetCachedError() { - int32 attrib_list[] = { + int32_t attrib_list[] = { NPAttrib_Error, 0, NPAttrib_End }; |