Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
non-destructive text micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
badge fixer
non-destructive text micropython
Commits
e9593d50
Commit
e9593d50
authored
5 years ago
by
Yonatan Goldschmidt
Committed by
Damien George
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
py/sequence: Fix grammar in comment about equality.
parent
3b258ef2
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
py/sequence.c
+1
-1
1 addition, 1 deletion
py/sequence.c
with
1 addition
and
1 deletion
py/sequence.c
+
1
−
1
View file @
e9593d50
...
@@ -165,7 +165,7 @@ bool mp_seq_cmp_bytes(mp_uint_t op, const byte *data1, size_t len1, const byte *
...
@@ -165,7 +165,7 @@ bool mp_seq_cmp_bytes(mp_uint_t op, const byte *data1, size_t len1, const byte *
size_t
min_len
=
len1
<
len2
?
len1
:
len2
;
size_t
min_len
=
len1
<
len2
?
len1
:
len2
;
int
res
=
memcmp
(
data1
,
data2
,
min_len
);
int
res
=
memcmp
(
data1
,
data2
,
min_len
);
if
(
op
==
MP_BINARY_OP_EQUAL
)
{
if
(
op
==
MP_BINARY_OP_EQUAL
)
{
// If we are checking for equality, here'
re
the answer
// If we are checking for equality, here'
s
the answer
return
res
==
0
;
return
res
==
0
;
}
}
if
(
res
<
0
)
{
if
(
res
<
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment