Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
181835d5
Commit
181835d5
authored
Feb 10, 2019
by
Ivan Levkivskyi
Committed by
GitHub
Feb 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler warnings about end_col_offset and end_lineno (GH-11735)
parent
5033e315
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
Python/ast.c
Python/ast.c
+2
-5
No files found.
Python/ast.c
View file @
181835d5
...
...
@@ -3871,11 +3871,8 @@ static void
get_last_end_pos
(
asdl_seq
*
s
,
int
*
end_lineno
,
int
*
end_col_offset
)
{
int
tot
=
asdl_seq_LEN
(
s
);
// Suite should not be empty, but it is safe to just ignore it
// if it will ever occur.
if
(
!
tot
)
{
return
;
}
// There must be no empty suites.
assert
(
tot
>
0
);
stmt_ty
last
=
asdl_seq_GET
(
s
,
tot
-
1
);
*
end_lineno
=
last
->
end_lineno
;
*
end_col_offset
=
last
->
end_col_offset
;
...
...
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