Correct problems found by CI
This commit is contained in:
parent
66b3eccaf6
commit
ab59e36613
@ -90,13 +90,13 @@ void common_hal_memorymap_addressrange_construct(memorymap_addressrange_obj_t *s
|
|||||||
self->len = length;
|
self->len = length;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t common_hal_memorymap_addressrange_get_length(const memorymap_addressrange_obj_t *self) {
|
size_t common_hal_memorymap_addressrange_get_length(const memorymap_addressrange_obj_t *self) {
|
||||||
return self->len;
|
return self->len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void common_hal_memorymap_addressrange_set_bytes(const memorymap_addressrange_obj_t *self,
|
void common_hal_memorymap_addressrange_set_bytes(const memorymap_addressrange_obj_t *self,
|
||||||
uint32_t start_index, uint8_t *values, uint32_t len) {
|
size_t start_index, uint8_t *values, size_t len) {
|
||||||
uint8_t *address = self->start_address + start_index;
|
uint8_t *address = self->start_address + start_index;
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wcast-align"
|
#pragma GCC diagnostic ignored "-Wcast-align"
|
||||||
@ -115,7 +115,7 @@ void common_hal_memorymap_addressrange_set_bytes(const memorymap_addressrange_ob
|
|||||||
}
|
}
|
||||||
|
|
||||||
void common_hal_memorymap_addressrange_get_bytes(const memorymap_addressrange_obj_t *self,
|
void common_hal_memorymap_addressrange_get_bytes(const memorymap_addressrange_obj_t *self,
|
||||||
uint32_t start_index, uint32_t len, uint8_t *values) {
|
size_t start_index, size_t len, uint8_t *values) {
|
||||||
uint8_t *address = self->start_address + start_index;
|
uint8_t *address = self->start_address + start_index;
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wcast-align"
|
#pragma GCC diagnostic ignored "-Wcast-align"
|
||||||
|
@ -438,6 +438,11 @@ mp_int_t mp_obj_int_get_checked(mp_const_obj_t self_in) {
|
|||||||
return MP_OBJ_SMALL_INT_VALUE(self_in);
|
return MP_OBJ_SMALL_INT_VALUE(self_in);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mp_uint_t mp_obj_int_get_uint_checked(mp_const_obj_t self_in) {
|
||||||
|
return MP_OBJ_SMALL_INT_VALUE(self_in);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif // MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_NONE
|
#endif // MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_NONE
|
||||||
|
|
||||||
// This dispatcher function is expected to be independent of the implementation of long int
|
// This dispatcher function is expected to be independent of the implementation of long int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user