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
4625495c
Commit
4625495c
authored
Nov 17, 2014
by
Thomas Jahns
🤸
Browse files
Fix implicit narrowing in cdf_write_var_data.
parent
4b3b86b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
4625495c
...
...
@@ -3620,7 +3620,7 @@ cdf_write_var_data(int fileID, int vlistID, int varID, int ncvarid, int dtype, l
{
if
(
laddoffset
)
temp
-=
addoffset
;
if
(
lscalefactor
)
temp
/=
scalefactor
;
mdata_sp
[
i
]
=
temp
;
mdata_sp
[
i
]
=
(
float
)
temp
;
}
}
}
...
...
@@ -3631,7 +3631,7 @@ cdf_write_var_data(int fileID, int vlistID, int varID, int ncvarid, int dtype, l
double
temp
=
mdata_sp
[
i
];
if
(
laddoffset
)
temp
-=
addoffset
;
if
(
lscalefactor
)
temp
/=
scalefactor
;
mdata_sp
[
i
]
=
temp
;
mdata_sp
[
i
]
=
(
float
)
temp
;
}
}
}
...
...
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