Skip to content
GitLab
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
bcb8c58c
Commit
bcb8c58c
authored
Dec 05, 2014
by
Thomas Jahns
🤸
Browse files
Add recommended parentheses.
parent
46fc74d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cgribex.c
View file @
bcb8c58c
...
...
@@ -524,10 +524,10 @@ compvar_t cgribexVarSet(int param, int level1, int level2, int leveltype, int tr
static
inline
int
cgribexVarCompare
(
compvar_t
compVar
,
record_t
record
,
int
flag
)
{
int
tstepDiff
=
!
(
flag
==
0
&
(((
compVar
.
tsteptype
==
TSTEP_INSTANT
)
&
(
record
.
tsteptype
==
TSTEP_INSTANT3
))
|
((
compVar
.
tsteptype
==
TSTEP_INSTANT3
)
&
(
record
.
tsteptype
==
TSTEP_INSTANT
))))
int
tstepDiff
=
(
!
(
(
flag
==
0
)
&
(((
compVar
.
tsteptype
==
TSTEP_INSTANT
)
&
(
record
.
tsteptype
==
TSTEP_INSTANT3
))
|
((
compVar
.
tsteptype
==
TSTEP_INSTANT3
)
&
(
record
.
tsteptype
==
TSTEP_INSTANT
))))
)
&
(
compVar
.
tsteptype
!=
record
.
tsteptype
);
int
rstatus
=
(
compVar
.
param
!=
record
.
param
)
|
(
compVar
.
level1
!=
record
.
ilevel
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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