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
ebd58d63
Commit
ebd58d63
authored
Jan 06, 2017
by
Thomas Jahns
🤸
Browse files
Fix implicit conversion.
parent
8cab722d
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/printinfo.h
View file @
ebd58d63
...
...
@@ -226,7 +226,7 @@ void print_xyvals2D(int gridID, int dig)
int
xsize
=
gridInqXsize
(
gridID
);
if
(
xsize
>
1
)
{
double
*
xvals
=
(
double
*
)
malloc
(
xsize
*
sizeof
(
double
));
double
*
xvals
=
(
double
*
)
malloc
(
(
size_t
)
xsize
*
sizeof
(
double
));
for
(
int
i
=
0
;
i
<
xsize
;
++
i
)
xvals
[
i
]
=
xvals2D
[
i
];
xinc
=
fabs
(
xvals
[
xsize
-
1
]
-
xvals
[
0
])
/
(
xsize
-
1
);
for
(
int
i
=
2
;
i
<
xsize
;
i
++
)
...
...
@@ -236,7 +236,7 @@ void print_xyvals2D(int gridID, int dig)
int
ysize
=
gridInqYsize
(
gridID
);
if
(
ysize
>
1
)
{
double
*
yvals
=
(
double
*
)
malloc
(
ysize
*
sizeof
(
double
));
double
*
yvals
=
(
double
*
)
malloc
(
(
size_t
)
ysize
*
sizeof
(
double
));
for
(
int
i
=
0
;
i
<
ysize
;
++
i
)
yvals
[
i
]
=
yvals2D
[
i
*
xsize
];
yinc
=
fabs
(
yvals
[
ysize
-
1
]
-
yvals
[
0
])
/
(
ysize
-
1
);
for
(
int
i
=
2
;
i
<
ysize
;
i
++
)
...
...
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