Commit fa489bfe authored by buntinas's avatar buntinas
Browse files

fixed bug in dataloop code that miscalculated offsets for structs when the hetero flag is set

parent 8a255b9f
......@@ -729,7 +729,7 @@ void PREPEND_PREFIX(Segment_manipulate)(struct DLOOP_Segment *segp,
break;
case DLOOP_KIND_STRUCT:
cur_elmp->orig_block =
DLOOP_STACKELM_STRUCT_BLOCKSIZE(cur_elmp, cur_elmp->orig_count - cur_elmp->curcount);
DLOOP_STACKELM_STRUCT_BLOCKSIZE(cur_elmp, cur_elmp->curcount ? cur_elmp->orig_count - cur_elmp->curcount : 0);
break;
default:
/* --BEGIN ERROR HANDLING-- */
......
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