Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit56ff366

Browse files
author
Vitaly Davydov
committed
Fix sphereline_circle_pos (uninitialized memory use)
1 parent1709fd5 commit56ff366

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎expected/overlaps.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,14 +835,14 @@ select 'sbox && scircle', 'f' as expected, sbox'((0d , 0d), (20d , 20d))' && sci
835835
select 'sbox && scircle', 'f' as expected, sbox'((0d , 0d), (0d , 0d))' && scircle'<(10d , 0d) , 10d>' as actual;
836836
?column? | expected | actual
837837
-----------------+----------+--------
838-
sbox && scircle | f |f
838+
sbox && scircle | f |t
839839
(1 row)
840840

841841
-- the box degenerated into the point lies in the interior of circle
842842
select 'sbox && scircle', 'f' as expected, sbox'((0d , 0d), (0d , 0d))' && scircle'<(0d , 0d) , 10d>' as actual;
843843
?column? | expected | actual
844844
-----------------+----------+--------
845-
sbox && scircle | f |f
845+
sbox && scircle | f |t
846846
(1 row)
847847

848848
-- the box and circle are degenerated into the point and coincide

‎src/line.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ sphereline_circle_pos(const SLine *sl, const SCIRCLE *sc)
349349
{
350350
/* line is point */
351351
sline_begin(&p[0],sl);
352-
if (spoint_in_circle(&p[0],&c))
352+
if (spoint_in_circle(&p[0],sc))
353353
{
354354
returnPGS_CIRCLE_CONT_LINE;
355355
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp