Commit d4f351f2 authored by Claes Sjofors's avatar Claes Sjofors

Rt and wb attribute offset for large array fixes

parent 8099410c
...@@ -981,7 +981,7 @@ int wb_vrepwbl::getAttrInfoRec( wb_attrname *attr, pwr_eBix bix, pwr_tCid cid, s ...@@ -981,7 +981,7 @@ int wb_vrepwbl::getAttrInfoRec( wb_attrname *attr, pwr_eBix bix, pwr_tCid cid, s
if ( index >= n_attr->o->a.elements) if ( index >= n_attr->o->a.elements)
return 0; return 0;
*offset += n_attr->o->a.offset + index * n_attr->o->a.size / n_attr->o->a.elements; *offset += n_attr->o->a.offset + index * (n_attr->o->a.size / n_attr->o->a.elements);
*size = n_attr->o->a.size / n_attr->o->a.elements; *size = n_attr->o->a.size / n_attr->o->a.elements;
} }
else { else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment