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
Lenstool
Lenstool
Commits
c29b2e5b
Commit
c29b2e5b
authored
Oct 20, 2019
by
Johan Richard
Browse files
Compatibility with older compilers
parent
ebfcdea9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/criticnew.c
View file @
c29b2e5b
...
...
@@ -579,12 +579,13 @@ static void cl_connectdots(int verbose)
float
currentdist
,
distmin
,
disttest
;
struct
biline
zpos
,
currentpos
;
int
pos
,
minpos
,
iline
;
int
i
;
iline
=
1
;
currentpos
=
tangent
[
1
];
// start with the first two points
for
(
int
i
=
2
;
i
<
ntline
;
i
++
)
for
(
i
=
2
;
i
<
ntline
;
i
++
)
{
if
(
tangent
[
i
].
i
==
1
)
// start a new line
{
...
...
@@ -627,7 +628,7 @@ static void cl_connectdots(int verbose)
currentpos
=
radial
[
1
];
// start with the first two points
for
(
int
i
=
2
;
i
<
nrline
;
i
++
)
for
(
i
=
2
;
i
<
nrline
;
i
++
)
{
if
(
radial
[
i
].
i
==
1
)
// start a new line
{
...
...
src/zonemult.c
View file @
c29b2e5b
...
...
@@ -62,7 +62,7 @@ void zonemult()
dlsds
=
dratio
(
lens
[
0
].
z
,
CL
.
cz
[
0
]);
line
=
(
struct
point
**
)
malloc
(
NLMAX
*
sizeof
(
struct
point
*
));
for
(
int
i
=
0
;
i
<
NLMAX
;
i
++
)
for
(
i
=
0
;
i
<
NLMAX
;
i
++
)
line
[
i
]
=
(
struct
point
*
)
malloc
(
NPOINT
*
sizeof
(
struct
point
));
...
...
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