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
2d9440e2
Commit
2d9440e2
authored
Dec 28, 2016
by
Damien George
Browse files
py/mpz: Fix assertion in mpz_set_from_str which checks value of base.
parent
c2dd494b
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/mpz.c
View file @
2d9440e2
...
...
@@ -874,7 +874,7 @@ typedef uint32_t mp_float_int_t;
// returns number of bytes from str that were processed
mp_uint_t
mpz_set_from_str
(
mpz_t
*
z
,
const
char
*
str
,
mp_uint_t
len
,
bool
neg
,
mp_uint_t
base
)
{
assert
(
base
<
36
);
assert
(
base
<
=
36
);
const
char
*
cur
=
str
;
const
char
*
top
=
str
+
len
;
...
...
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