From 2d62328addea84723000987c24cc665838020ab0 Mon Sep 17 00:00:00 2001 From: Ewan Crawford Date: Wed, 21 Oct 2015 10:27:10 +0000 Subject: [RenderScript] Fix out of bounds warning. llvm-svn: 250891 --- .../RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp') diff --git a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp index 3bd56981a1b..0a28eb654af 100644 --- a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp +++ b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp @@ -1624,9 +1624,9 @@ RenderScriptRuntime::SaveAllocation(Stream &strm, const uint32_t alloc_id, const head.hdr_size = static_cast(sizeof(AllocationDetails::FileHeader)); head.type = static_cast(*alloc->type.get()); head.kind = static_cast(*alloc->type_kind.get()); - head.dims[1] = static_cast(alloc->dimension.get()->dim_1); - head.dims[2] = static_cast(alloc->dimension.get()->dim_2); - head.dims[3] = static_cast(alloc->dimension.get()->dim_3); + head.dims[0] = static_cast(alloc->dimension.get()->dim_1); + head.dims[1] = static_cast(alloc->dimension.get()->dim_2); + head.dims[2] = static_cast(alloc->dimension.get()->dim_3); head.element_size = static_cast(GetElementSize(alloc)); // Write the file header -- cgit v1.2.3