Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
945033bf
Commit
945033bf
authored
Dec 09, 2016
by
Thomas Jahns
🤸
Browse files
Fix overflow warning.
parent
830011c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cdf_write.c
View file @
945033bf
...
...
@@ -958,8 +958,7 @@ void cdf_write_var(stream_t *streamptr, int varID, int memtype, const void *data
size_t
start
[
5
];
size_t
count
[
5
];
bool
swapxy
=
false
;
int
ndims
=
0
;
int
idim
;
size_t
ndims
=
0
;
if
(
CDI_Debug
)
Message
(
"streamID = %d varID = %d"
,
streamptr
->
self
,
varID
);
...
...
@@ -1025,7 +1024,7 @@ void cdf_write_var(stream_t *streamptr, int varID, int memtype, const void *data
}
if
(
CDI_Debug
)
for
(
idim
=
0
;
idim
<
ndims
;
idim
++
)
for
(
size_t
idim
=
0
;
idim
<
ndims
;
idim
++
)
Message
(
"dim = %d start = %d count = %d"
,
idim
,
start
[
idim
],
count
[
idim
]);
if
(
streamptr
->
ncmode
==
1
)
...
...
@@ -1054,8 +1053,7 @@ void cdf_write_var_chunk(stream_t *streamptr, int varID, int memtype,
size_t
start
[
5
];
size_t
count
[
5
];
bool
swapxy
=
false
;
int
ndims
=
0
;
int
idim
;
size_t
ndims
=
0
;
int
streamID
=
streamptr
->
self
;
if
(
CDI_Debug
)
...
...
@@ -1127,7 +1125,7 @@ void cdf_write_var_chunk(stream_t *streamptr, int varID, int memtype,
}
if
(
CDI_Debug
)
for
(
idim
=
0
;
idim
<
ndims
;
idim
++
)
for
(
size_t
idim
=
0
;
idim
<
ndims
;
idim
++
)
Message
(
"dim = %d start = %d count = %d"
,
idim
,
start
[
idim
],
count
[
idim
]);
if
(
streamptr
->
ncmode
==
1
)
...
...
Write
Preview
Supports
Markdown
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