Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
f31cf22e
Commit
f31cf22e
authored
Mar 04, 2016
by
Thomas Jahns
🤸
Browse files
Fix cast of function return value.
parent
95f46334
Changes
1
Show whitespace changes
Inline
Side-by-side
src/pio_rpc.c
View file @
f31cf22e
...
...
@@ -28,9 +28,9 @@ computeClientStreamBufSize(int streamID, const struct collSpec *collector)
size_t
chunkSize
;
{
int
varSize
=
vlistInqVarSize
(
vlistID
,
(
int
)
varID
);
chunkSize
=
(
size_t
)
ceilf
(
cdiPIOpartInflate_
chunkSize
=
(
size_t
)
(
ceilf
(
cdiPIOpartInflate_
*
(
float
)
varSize
/
(
float
)
collector
->
numClients
);
/
(
float
)
collector
->
numClients
)
)
;
}
rmaSizeSpec
.
numDataRecords
+=
2
;
rmaSizeSpec
.
bufSize
+=
chunkSize
*
sizeof
(
double
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment