Skip to content

Commit d2ddf36

Browse files
committed
shared-bindings: Use unary_op type.
1 parent 00766e4 commit d2ddf36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shared-bindings/nvm/ByteArray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
//|
5454
//| Return the length. This is used by (`len`)
5555
//|
56-
STATIC mp_obj_t nvm_bytearray_unary_op(mp_uint_t op, mp_obj_t self_in) {
56+
STATIC mp_obj_t nvm_bytearray_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
5757
nvm_bytearray_obj_t *self = MP_OBJ_TO_PTR(self_in);
5858
uint16_t len = common_hal_nvm_bytearray_get_length(self);
5959
switch (op) {

shared-bindings/pulseio/PulseIn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ const mp_obj_property_t pulseio_pulsein_maxlen_obj = {
228228
//| pulses = pulseio.PulseIn(pin)
229229
//| print(len(pulses))
230230
//|
231-
STATIC mp_obj_t pulsein_unary_op(mp_uint_t op, mp_obj_t self_in) {
231+
STATIC mp_obj_t pulsein_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
232232
pulseio_pulsein_obj_t *self = MP_OBJ_TO_PTR(self_in);
233233
raise_error_if_deinited(common_hal_pulseio_pulsein_deinited(self));
234234
uint16_t len = common_hal_pulseio_pulsein_get_len(self);

0 commit comments

Comments
 (0)