Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
bf8ae4d9
Commit
bf8ae4d9
authored
Apr 10, 2014
by
Damien George
Browse files
py: Fix modstruct to compile on 64-bit machine.
parent
3a8b1607
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/modstruct.c
View file @
bf8ae4d9
...
...
@@ -38,7 +38,7 @@ STATIC mp_obj_t struct_calcsize(mp_obj_t fmt_in) {
const
char
*
fmt
=
mp_obj_str_get_str
(
fmt_in
);
char
fmt_type
=
get_fmt_type
(
&
fmt
);
assert
(
fmt_type
==
'<'
);
(
void
)
fmt_type
;
uint
size
;
machine_
uint
_t
size
;
for
(
size
=
0
;
*
fmt
;
fmt
++
)
{
int
sz
=
mp_binary_get_size
(
*
fmt
);
// TODO
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment