aboutsummaryrefslogtreecommitdiff
path: root/py/sequence.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-08-30 14:28:06 +0100
committerDamien George <damien.p.george@gmail.com>2014-08-30 14:28:06 +0100
commit4d91723587b27c5a1da7e759e3f761a16b35d4bd (patch)
tree033db77a44ec9513b76454029039371b4501be37 /py/sequence.c
parentd182b98a37bde34c06ae705624da03cf381eb4dc (diff)
py: Remove use of int type in obj.h.
Part of code cleanup, working towards resolving issue #50.
Diffstat (limited to 'py/sequence.c')
-rw-r--r--py/sequence.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/sequence.c b/py/sequence.c
index ad6033110..6e92b6b7a 100644
--- a/py/sequence.c
+++ b/py/sequence.c
@@ -125,7 +125,7 @@ mp_obj_t mp_seq_extract_slice(mp_uint_t len, const mp_obj_t *seq, mp_bound_slice
// Special-case comparison function for sequences of bytes
// Don't pass MP_BINARY_OP_NOT_EQUAL here
-bool mp_seq_cmp_bytes(int op, const byte *data1, mp_uint_t len1, const byte *data2, mp_uint_t len2) {
+bool mp_seq_cmp_bytes(mp_uint_t op, const byte *data1, mp_uint_t len1, const byte *data2, mp_uint_t len2) {
if (op == MP_BINARY_OP_EQUAL && len1 != len2) {
return false;
}
@@ -169,7 +169,7 @@ bool mp_seq_cmp_bytes(int op, const byte *data1, mp_uint_t len1, const byte *dat
// Special-case comparison function for sequences of mp_obj_t
// Don't pass MP_BINARY_OP_NOT_EQUAL here
-bool mp_seq_cmp_objs(int op, const mp_obj_t *items1, mp_uint_t len1, const mp_obj_t *items2, mp_uint_t len2) {
+bool mp_seq_cmp_objs(mp_uint_t op, const mp_obj_t *items1, mp_uint_t len1, const mp_obj_t *items2, mp_uint_t len2) {
if (op == MP_BINARY_OP_EQUAL && len1 != len2) {
return false;
}