From ec4c7fad1fe5e183169bad605736af5ba2d889a6 Mon Sep 17 00:00:00 2001 From: SASANO Takayoshi Date: Mon, 16 Sep 2024 19:14:02 +0900 Subject: [PATCH] stlink-lib/usb.c: fix -Wshorten-64-to-32 error --- src/stlink-lib/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stlink-lib/usb.c b/src/stlink-lib/usb.c index e37b531..b6195aa 100644 --- a/src/stlink-lib/usb.c +++ b/src/stlink-lib/usb.c @@ -1117,7 +1117,7 @@ uint32_t stlink_serial(struct libusb_device_handle *handle, struct libusb_device return 0; } - return strlen(serial); + return (uint32_t)strlen(serial); } /**