Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
d6537153
Commit
d6537153
authored
Mar 15, 2017
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py/mpprint: Fix int formatting so "+" is printed for 0-valued integer.
parent
8cd4911e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
py/mpprint.c
py/mpprint.c
+1
-1
No files found.
py/mpprint.c
View file @
d6537153
...
...
@@ -222,7 +222,7 @@ int mp_print_mp_int(const mp_print_t *print, mp_obj_t x, int base, int base_char
char
prefix_buf
[
4
];
char
*
prefix
=
prefix_buf
;
if
(
mp_obj_int_sign
(
x
)
>
0
)
{
if
(
mp_obj_int_sign
(
x
)
>
=
0
)
{
if
(
flags
&
PF_FLAG_SHOW_SIGN
)
{
*
prefix
++
=
'+'
;
}
else
if
(
flags
&
PF_FLAG_SPACE_SIGN
)
{
...
...
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