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
f96b643c
Commit
f96b643c
authored
May 28, 2014
by
Uwe Schulzweida
Browse files
cast void* parameter
parent
3b626ab4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/varscan.c
View file @
f96b643c
...
...
@@ -384,8 +384,8 @@ static
int
cmpLevelTable
(
const
void
*
s1
,
const
void
*
s2
)
{
int
cmp
=
0
;
const
leveltable_t
*
x
=
s1
;
const
leveltable_t
*
y
=
s2
;
const
leveltable_t
*
x
=
(
const
leveltable_t
*
)
s1
;
const
leveltable_t
*
y
=
(
const
leveltable_t
*
)
s2
;
/*
printf("%g %g %d %d\n", x->leve11, y->level1, x, y);
*/
...
...
@@ -399,8 +399,8 @@ static
int
cmpLevelTableInv
(
const
void
*
s1
,
const
void
*
s2
)
{
int
cmp
=
0
;
const
leveltable_t
*
x
=
s1
;
const
leveltable_t
*
y
=
s2
;
const
leveltable_t
*
x
=
(
const
leveltable_t
*
)
s1
;
const
leveltable_t
*
y
=
(
const
leveltable_t
*
)
s2
;
/*
printf("%g %g %d %d\n", x->leve11, y->level1, x, y);
*/
...
...
@@ -423,8 +423,8 @@ param_t;
static
int
cmpparam
(
const
void
*
s1
,
const
void
*
s2
)
{
const
param_t
*
x
=
s1
;
const
param_t
*
y
=
s2
;
const
param_t
*
x
=
(
const
param_t
*
)
s1
;
const
param_t
*
y
=
(
const
param_t
*
)
s2
;
int
cmp
=
((
x
->
param
>
y
->
param
)
-
(
x
->
param
<
y
->
param
))
*
2
+
(
x
->
ltype
>
y
->
ltype
)
-
(
x
->
ltype
<
y
->
ltype
);
...
...
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