summaryrefslogtreecommitdiff
path: root/py/objint.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-27 09:05:50 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-27 12:25:23 +0200
commit9b00dad7bb0125a3459ca4f9c939c7510bd2f77f (patch)
treebef9918585abfaab1b9f777c2f2f03a331df3719 /py/objint.c
parentddf1aa9223a2786c64df07ea686ecfe6ee83d1b2 (diff)
long int: Implement more operations.
Diffstat (limited to 'py/objint.c')
-rw-r--r--py/objint.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/py/objint.c b/py/objint.c
index 1305f1900..1a04408af 100644
--- a/py/objint.c
+++ b/py/objint.c
@@ -52,6 +52,12 @@ void int_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj
}
// This is called only for non-SMALL_INT
+mp_obj_t int_unary_op(int op, mp_obj_t o_in) {
+ assert(0);
+ return mp_const_none;
+}
+
+// This is called only for non-SMALL_INT
mp_obj_t int_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) {
assert(0);
return mp_const_none;
@@ -96,5 +102,6 @@ const mp_obj_type_t int_type = {
"int",
.print = int_print,
.make_new = int_make_new,
+ .unary_op = int_unary_op,
.binary_op = int_binary_op,
};