Commit 621b5354 authored by claes's avatar claes

ArefToAttribute: aref of whole class element had wrong index

parent 43c8c5cf
/*
* Proview $Id: rt_mvol.c,v 1.18 2008-04-25 11:12:47 claes Exp $
* Proview $Id: rt_mvol.c,v 1.19 2008-05-14 14:05:38 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -450,6 +450,7 @@ mvol_ArefToAttribute (
if (arp->Offset > offset &&
((arp->Offset - offset) % (acp->attr[i].size / acp->attr[i].elem)) != 0)
pwr_Return(NULL, sts, GDH__ATTRIBUTE);
offset -= idx * acp->attr[i].size / acp->attr[i].elem;
break;
}
}
......
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