Skip to content

Commit 9f15769

Browse files
Merge pull request #1427 from jg1uaa/testing
Fixed compilation error -Wshorten-64-to-32 in stlink-lib/usb.c
2 parents a548e83 + ec4c7fa commit 9f15769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stlink-lib/usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ uint32_t stlink_serial(struct libusb_device_handle *handle, struct libusb_device
11171117
return 0;
11181118
}
11191119

1120-
return strlen(serial);
1120+
return (uint32_t)strlen(serial);
11211121
}
11221122

11231123
/**

0 commit comments

Comments
 (0)