Skip to content
Snippets Groups Projects
Commit 67b2ea44 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Don't overflow when converting to bytes

parent e10ad14e
No related branches found
No related tags found
1 merge request!8Draft: RDMA version with wrapped infinity calls
...@@ -127,7 +127,7 @@ static int toblocks(BLOCKTYPE nr_bytes) { ...@@ -127,7 +127,7 @@ static int toblocks(BLOCKTYPE nr_bytes) {
* *
* @result the number of bytes. * @result the number of bytes.
*/ */
static BLOCKTYPE tobytes(int nr_blocks) { return (nr_blocks * BYTESINBLOCK); } static BLOCKTYPE tobytes(BLOCKTYPE nr_blocks) { return (nr_blocks * BYTESINBLOCK); }
/** /**
* @brief fill a data area with given value. * @brief fill a data area with given value.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment