summaryrefslogtreecommitdiff
path: root/py/objfloat.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-12 15:38:15 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-12 15:38:15 +0000
commit9d68e9ccdd4d7f4ecb7a8765ca694e355753d686 (patch)
tree73926072f5555829e31dfb1a1b72abe259bacd03 /py/objfloat.c
parentbb4a43f35ccb128aeb42e483d9937764353de49e (diff)
py: Implement integer overflow checking for * and << ops.
If operation will overflow, a multi-precision integer is created.
Diffstat (limited to 'py/objfloat.c')
-rw-r--r--py/objfloat.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/py/objfloat.c b/py/objfloat.c
index 91d669ad5..04d127801 100644
--- a/py/objfloat.c
+++ b/py/objfloat.c
@@ -17,8 +17,6 @@
#include "formatfloat.h"
#endif
-mp_obj_t mp_obj_new_float(mp_float_t value);
-
STATIC void float_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in, mp_print_kind_t kind) {
mp_obj_float_t *o = o_in;
#if MICROPY_FLOAT_IMPL == MICROPY_FLOAT_IMPL_FLOAT