summaryrefslogtreecommitdiffstatshomepage
path: root/py/modmath.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-01-03 14:21:40 +0000
committerDamien George <damien.p.george@gmail.com>2016-01-11 00:49:27 +0000
commit4b72b3a133ea87a1ef8b964508dc25c551ccf093 (patch)
treee00ae8b891475f1a5d76bd2401d20a4dfb26e1e1 /py/modmath.c
parenta0c97814dfcb0debbde8be99539e3d5ca2334e54 (diff)
downloadmicropython-4b72b3a133ea87a1ef8b964508dc25c551ccf093.tar.gz
micropython-4b72b3a133ea87a1ef8b964508dc25c551ccf093.zip
py: Change type signature of builtin funs that take variable or kw args.
With this patch the n_args parameter is changed type from mp_uint_t to size_t.
Diffstat (limited to 'py/modmath.c')
-rw-r--r--py/modmath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/modmath.c b/py/modmath.c
index cffd8cf491..6abf8ab3e9 100644
--- a/py/modmath.c
+++ b/py/modmath.c
@@ -152,7 +152,7 @@ MATH_FUN_1(lgamma, lgamma)
// Function that takes a variable number of arguments
// log(x[, base])
-STATIC mp_obj_t mp_math_log(mp_uint_t n_args, const mp_obj_t *args) {
+STATIC mp_obj_t mp_math_log(size_t n_args, const mp_obj_t *args) {
mp_float_t x = mp_obj_get_float(args[0]);
if (x <= (mp_float_t)0.0) {
math_error();