Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
4b753515
Commit
4b753515
authored
7 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
py/objzip: Convert mp_uint_t to size_t.
parent
00b1a3e4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
py/objzip.c
+3
-3
3 additions, 3 deletions
py/objzip.c
with
3 additions
and
3 deletions
py/objzip.c
+
3
−
3
View file @
4b753515
...
...
@@ -32,7 +32,7 @@
typedef
struct
_mp_obj_zip_t
{
mp_obj_base_t
base
;
mp_uint
_t
n_iters
;
size
_t
n_iters
;
mp_obj_t
iters
[];
}
mp_obj_zip_t
;
...
...
@@ -42,7 +42,7 @@ STATIC mp_obj_t zip_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_
mp_obj_zip_t
*
o
=
m_new_obj_var
(
mp_obj_zip_t
,
mp_obj_t
,
n_args
);
o
->
base
.
type
=
type
;
o
->
n_iters
=
n_args
;
for
(
mp_uint
_t
i
=
0
;
i
<
n_args
;
i
++
)
{
for
(
size
_t
i
=
0
;
i
<
n_args
;
i
++
)
{
o
->
iters
[
i
]
=
mp_getiter
(
args
[
i
],
NULL
);
}
return
MP_OBJ_FROM_PTR
(
o
);
...
...
@@ -56,7 +56,7 @@ STATIC mp_obj_t zip_iternext(mp_obj_t self_in) {
}
mp_obj_tuple_t
*
tuple
=
MP_OBJ_TO_PTR
(
mp_obj_new_tuple
(
self
->
n_iters
,
NULL
));
for
(
mp_uint
_t
i
=
0
;
i
<
self
->
n_iters
;
i
++
)
{
for
(
size
_t
i
=
0
;
i
<
self
->
n_iters
;
i
++
)
{
mp_obj_t
next
=
mp_iternext
(
self
->
iters
[
i
]);
if
(
next
==
MP_OBJ_STOP_ITERATION
)
{
mp_obj_tuple_del
(
MP_OBJ_FROM_PTR
(
tuple
));
...
...
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