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
27d05fbb
Commit
27d05fbb
authored
Dec 06, 2017
by
Uwe Schulzweida
Browse files
Changed abs() to labs().
parent
55fdbf7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cgribex.c
View file @
27d05fbb
...
...
@@ -191,7 +191,7 @@ void cgribexGetGrid(stream_t *streamptr, int *isec2, int *isec4, grid_t *grid, i
if
(
ijDirectionIncrementGiven
&&
ISEC2_LonIncr
>
0
)
{
if
(
abs
(
ISEC2_LastLon
-
(
ISEC2_FirstLon
+
ISEC2_LonIncr
*
(
grid
->
x
.
size
-
1
)))
<=
2
)
if
(
l
abs
(
ISEC2_LastLon
-
(
ISEC2_FirstLon
+
ISEC2_LonIncr
*
(
(
long
)
grid
->
x
.
size
-
1
)))
<=
2
)
{
recompinc
=
false
;
grid
->
x
.
inc
=
ISEC2_LonIncr
*
0
.
001
;
...
...
@@ -224,7 +224,7 @@ void cgribexGetGrid(stream_t *streamptr, int *isec2, int *isec4, grid_t *grid, i
bool
recompinc
=
true
;
if
(
ijDirectionIncrementGiven
&&
ISEC2_LatIncr
>
0
)
{
if
(
abs
(
ISEC2_LastLat
-
(
ISEC2_FirstLat
+
ISEC2_LatIncr
*
(
grid
->
y
.
size
-
1
)))
<=
2
)
if
(
l
abs
(
ISEC2_LastLat
-
(
ISEC2_FirstLat
+
ISEC2_LatIncr
*
(
(
long
)
grid
->
y
.
size
-
1
)))
<=
2
)
{
recompinc
=
false
;
grid
->
y
.
inc
=
ISEC2_LatIncr
*
0
.
001
;
...
...
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