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
27ebc633
Commit
27ebc633
authored
Mar 04, 2016
by
Thomas Jahns
🤸
Browse files
Improve layout of zaxis_t.
parent
398e8560
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/zaxis.c
View file @
27ebc633
...
...
@@ -65,7 +65,6 @@ enum {
typedef
struct
{
unsigned
char
positive
;
char
dimname
[
CDI_MAX_NAME
];
char
vdimname
[
CDI_MAX_NAME
];
char
name
[
CDI_MAX_NAME
];
...
...
@@ -86,6 +85,7 @@ typedef struct {
int
size
;
int
direction
;
int
vctsize
;
unsigned
positive
;
double
*
vct
;
int
number
;
/* Reference number to a generalized Z-axis */
int
nhlev
;
...
...
@@ -667,9 +667,9 @@ void zaxisDefPositive(int zaxisID, int positive)
{
zaxis_t
*
zaxisptr
=
zaxisID2Ptr
(
zaxisID
);
if
(
zaxisptr
->
positive
!=
positive
)
if
(
zaxisptr
->
positive
!=
(
unsigned
)(
positive
!=
0
)
)
{
zaxisptr
->
positive
=
(
unsigned
char
)
positive
;
zaxisptr
->
positive
=
(
unsigned
)
(
positive
!=
0
)
;
reshSetStatus
(
zaxisID
,
&
zaxisOps
,
RESH_DESYNC_IN_USE
);
}
}
...
...
@@ -678,7 +678,7 @@ void zaxisDefPositive(int zaxisID, int positive)
int
zaxisInqPositive
(
int
zaxisID
)
{
zaxis_t
*
zaxisptr
=
zaxisID2Ptr
(
zaxisID
);
return
zaxisptr
->
positive
;
return
(
int
)
zaxisptr
->
positive
;
}
...
...
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