- sendtmpbuf = static_cast<void *>(smpi_get_tmp_sendbuffer(count*datatype->get_extent()));
- Datatype::copy(recvbuf, count, datatype,sendtmpbuf, count, datatype);
+ tmp_sendbuf = smpi_get_tmp_sendbuffer(count * datatype->get_extent());
+ Datatype::copy(recvbuf, count, datatype, tmp_sendbuf, count, datatype);
+ real_sendbuf = tmp_sendbuf;