[Dune] [#1038] local variable size in saveRecvBuf needs to be of type std::size_t (Attachment added)

Dune flyspray at dune-project.org
Mon Feb 13 15:28:29 CET 2012


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Ansgar Burchardt (ansgar) 

Attached to Project - Dune
Summary - local variable size in saveRecvBuf needs to be of type std::size_t
Task Type - Bug Report
Category - ISTL
Status - New
Assigned To - 
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - SVN (pre2.2)
Due in Version - Undecided
Due Date - Undecided
Details - In the function saveRecvBuf, MPI_Unpack is used to read a std::size_t value into `size' so it needs the right type.  Using an int causes other local variables to be overwritten by the function call:

352      MPI_Unpack(recvBuf, bufferSize, &pos, &size, 1,  MPITraits<std::size_t>::getType(), comm);

A patch to change the type of size from int to std::size_t is attached.

Thanks to Jö for helping to find this bug.


One or more files have been attached.

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=1038

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list