diff options
| author | sakumisu <[email protected]> | 2024-06-14 00:25:07 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-06-14 00:25:07 +0800 |
| commit | e9a7eb9eeb83fca67f648189e20d39ed8284180f (patch) | |
| tree | 148a92f93e6e734d4ab57d2e3aac2614d8d66107 | |
| parent | 277f3940f62b7481dade61e04e3e370ccc7d1350 (diff) | |
fix warning
| -rw-r--r-- | common/usb_memcpy.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/usb_memcpy.h b/common/usb_memcpy.h index 05f40ae3..064de3da 100644 --- a/common/usb_memcpy.h +++ b/common/usb_memcpy.h @@ -18,8 +18,8 @@ static inline void dword2array(char *addr, uint32_t w) static inline void *usb_memcpy(void *s1, const void *s2, size_t n) { - char *b1 = s1; - const char *b2 = s2; + char *b1 = (char *)s1; + const char *b2 = (const char *)s2; uint32_t *w1; const uint32_t *w2; |
