aboutsummaryrefslogtreecommitdiff
path: root/py/objslice.c
diff options
context:
space:
mode:
authorian-v <ianv888@gmail.com>2014-01-06 09:52:29 -0800
committerian-v <ianv888@gmail.com>2014-01-06 09:52:29 -0800
commit7a16fadbf843ca5d49fb20b5f5785ffccfd9019f (patch)
tree167d326efc1a1a75d3a371bbeab1a0bc4164fd9e /py/objslice.c
parente03c0533fe467439bae1addd6d2a2ee57a9370e4 (diff)
Co-exist with C++ (issue #85)
Diffstat (limited to 'py/objslice.c')
-rw-r--r--py/objslice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objslice.c b/py/objslice.c
index da69b92af..360869a49 100644
--- a/py/objslice.c
+++ b/py/objslice.c
@@ -30,7 +30,7 @@ const mp_obj_type_t ellipsis_type = {
NULL, // binary_op
NULL, // getiter
NULL, // iternext
- .methods = {{NULL, NULL},},
+ .methods = NULL,
};
static const mp_obj_ellipsis_t ellipsis_obj = {{&ellipsis_type}};
@@ -58,7 +58,7 @@ const mp_obj_type_t slice_type = {
{ &mp_const_type },
"slice",
.print = slice_print,
- .methods = { { NULL, NULL }, },
+ .methods = NULL,
};
// TODO: Make sure to handle "empty" values, which are signified by None in CPython