Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flipperdevices/libusb_stm32.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/usbd_stm32wb55_devfs.c')
-rw-r--r--src/usbd_stm32wb55_devfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usbd_stm32wb55_devfs.c b/src/usbd_stm32wb55_devfs.c
index d06425c..6381024 100644
--- a/src/usbd_stm32wb55_devfs.c
+++ b/src/usbd_stm32wb55_devfs.c
@@ -94,7 +94,7 @@ static uint16_t get_next_pma(uint16_t sz) {
if ((tbl->rx.addr) && (tbl->rx.addr < _result)) _result = tbl->rx.addr;
if ((tbl->tx.addr) && (tbl->tx.addr < _result)) _result = tbl->tx.addr;
}
- return (_result < (0x020 + sz)) ? 0 : (_result - sz);
+ return (_result < (unsigned)(0x020 + sz)) ? 0 : (_result - sz);
}
static uint32_t getinfo(void) {