Changeset 4874

Show
Ignore:
Timestamp:
06/30/09 16:12:22 (5 months ago)
Author:
rross
Message:

fix for bug #664.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mpich2/trunk/src/mpid/common/datatype/dataloop/segment_ops.c

    r4873 r4874  
    944944             */ 
    945945            paramp->disps[last_idx+1]   = MPI_PTR_DISP_CAST_TO_MPI_AINT bufp + 
    946                 rel_off + offsetarray[last_idx+1]; 
    947             paramp->blklens[last_idx+1] = size; 
     946                rel_off + offsetarray[i]; 
     947            paramp->blklens[last_idx+1] = size; /* these blocks are in bytes */ 
    948948            paramp->index++; 
    949949        } 
    950  
    951         rel_off += offsetarray[i]; 
    952950    } 
    953951 
     
    955953     * blocks_p 
    956954     */ 
    957  
    958955    DLOOP_Assert(blocks_left == 0); 
    959956    return 0;