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
3876af4f
Commit
3876af4f
authored
Sep 04, 2018
by
Brendan Gerrity
Committed by
Steve Dower
Sep 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34565: Change a PC/launcher.c comment to accurately describe valid major versions. (GH-9037)
parent
266f4904
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
PC/launcher.c
PC/launcher.c
+2
-2
No files found.
PC/launcher.c
View file @
3876af4f
...
...
@@ -1051,7 +1051,7 @@ static BOOL
validate_version
(
wchar_t
*
p
)
{
/*
Version information should start with
one of 2 or 3
,
Version information should start with
the major version
,
Optionally followed by a period and a minor version,
Optionally followed by a minus and one of 32 or 64.
Valid examples:
...
...
@@ -1068,7 +1068,7 @@ validate_version(wchar_t * p)
*/
BOOL
result
=
(
p
!=
NULL
);
/* Default to False if null pointer. */
result
=
result
&&
iswdigit
(
*
p
);
/* Result = False if fist string element is not a digit. */
result
=
result
&&
iswdigit
(
*
p
);
/* Result = False if fi
r
st string element is not a digit. */
while
(
result
&&
iswdigit
(
*
p
))
/* Require a major version */
++
p
;
/* Skip all leading digit(s) */
...
...
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