diff options
| author | 2011-12-20 12:37:59 -0800 | |
|---|---|---|
| committer | 2011-12-20 12:37:59 -0800 | |
| commit | c9e7da6130e9e272873cbb465834c6755cea9afd (patch) | |
| tree | 63f46d353895f868cfe92569759212fea29d8e4d /libs/rs/rsElement.cpp | |
| parent | 603e0bec0c45fb5fd303917b640bbc32efc6073b (diff) | |
Adding simple hal struct to type.
Fixing off by 1 error in the element.
Change-Id: I0b142942c760cb861007af7099d35d0363f4e13b
Diffstat (limited to 'libs/rs/rsElement.cpp')
| -rw-r--r-- | libs/rs/rsElement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/rs/rsElement.cpp b/libs/rs/rsElement.cpp index 8b60701769ce..1e022cfc251d 100644 --- a/libs/rs/rsElement.cpp +++ b/libs/rs/rsElement.cpp @@ -198,7 +198,7 @@ void Element::compute() { mHal.state.fields[ct] = mFields[ct].e.get(); mHal.state.fieldArraySizes[ct] = mFields[ct].arraySize; mHal.state.fieldNames[ct] = mFields[ct].name.string(); - mHal.state.fieldNameLengths[ct] = mFields[ct].name.length(); + mHal.state.fieldNameLengths[ct] = mFields[ct].name.length() + 1; // to include 0 mHal.state.fieldOffsetBytes[ct] = mFields[ct].offsetBits >> 3; } |