Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
5f68094e
Commit
5f68094e
authored
Dec 30, 2014
by
Paul Sokolovsky
Browse files
py: mp_obj_new_int_from_float() supported only for MICROPY_PY_BUILTINS_FLOAT.
parent
f79cd6a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/obj.h
View file @
5f68094e
...
...
@@ -399,12 +399,12 @@ mp_obj_t mp_obj_new_int_from_uint(mp_uint_t value);
mp_obj_t
mp_obj_new_int_from_str_len
(
const
char
**
str
,
mp_uint_t
len
,
bool
neg
,
mp_uint_t
base
);
mp_obj_t
mp_obj_new_int_from_ll
(
long
long
val
);
// this must return a multi-precision integer object (or raise an overflow exception)
mp_obj_t
mp_obj_new_int_from_ull
(
unsigned
long
long
val
);
// this must return a multi-precision integer object (or raise an overflow exception)
mp_obj_t
mp_obj_new_int_from_float
(
mp_float_t
val
);
mp_obj_t
mp_obj_new_str
(
const
char
*
data
,
mp_uint_t
len
,
bool
make_qstr_if_not_already
);
mp_obj_t
mp_obj_new_bytes
(
const
byte
*
data
,
mp_uint_t
len
);
mp_obj_t
mp_obj_new_bytearray
(
mp_uint_t
n
,
void
*
items
);
mp_obj_t
mp_obj_new_bytearray_by_ref
(
mp_uint_t
n
,
void
*
items
);
#if MICROPY_PY_BUILTINS_FLOAT
mp_obj_t
mp_obj_new_int_from_float
(
mp_float_t
val
);
mp_obj_t
mp_obj_new_float
(
mp_float_t
val
);
mp_obj_t
mp_obj_new_complex
(
mp_float_t
real
,
mp_float_t
imag
);
#endif
...
...
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