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
8b824295
Commit
8b824295
authored
Nov 30, 2016
by
Damien George
Browse files
extmod/modurandom: Allow to build with float disabled.
parent
c19a395c
Changes
1
Hide whitespace changes
Inline
Side-by-side
extmod/modurandom.c
View file @
8b824295
...
...
@@ -206,9 +206,11 @@ STATIC const mp_rom_map_elem_t mp_module_urandom_globals_table[] = {
{
MP_ROM_QSTR
(
MP_QSTR_randrange
),
MP_ROM_PTR
(
&
mod_urandom_randrange_obj
)
},
{
MP_ROM_QSTR
(
MP_QSTR_randint
),
MP_ROM_PTR
(
&
mod_urandom_randint_obj
)
},
{
MP_ROM_QSTR
(
MP_QSTR_choice
),
MP_ROM_PTR
(
&
mod_urandom_choice_obj
)
},
#if MICROPY_PY_BUILTINS_FLOAT
{
MP_ROM_QSTR
(
MP_QSTR_random
),
MP_ROM_PTR
(
&
mod_urandom_random_obj
)
},
{
MP_ROM_QSTR
(
MP_QSTR_uniform
),
MP_ROM_PTR
(
&
mod_urandom_uniform_obj
)
},
#endif
#endif
};
STATIC
MP_DEFINE_CONST_DICT
(
mp_module_urandom_globals
,
mp_module_urandom_globals_table
);
...
...
Write
Preview
Supports
Markdown
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