diff options
author | Dean Camera <[email protected]> | 2009-11-10 11:24:15 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2009-11-10 11:24:15 +0000 |
commit | 5de364163f5a7597ba2f54e37cdea493fbd1e7ff (patch) | |
tree | 5fcd9f4c88696ea32d7bdec6721e8243d49567ca /LUFA/Drivers/USB/HighLevel | |
parent | c1782ac024a42c06680f511c939e653aacdb411d (diff) | |
download | qmk_firmware-5de364163f5a7597ba2f54e37cdea493fbd1e7ff.tar.gz qmk_firmware-5de364163f5a7597ba2f54e37cdea493fbd1e7ff.zip |
Update CDC Class Driver character stream functions to use the correct avr-libc return codes for errors and EOF.
Fix pointer arithmetic on void byte buffers by explicitly typecasting the buffer pointers to uint8_t* before altering them.
Diffstat (limited to 'LUFA/Drivers/USB/HighLevel')
-rw-r--r-- | LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h b/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h index 6d57d2e780..c2dc5038a9 100644 --- a/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h +++ b/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h @@ -263,8 +263,8 @@ {
uint16_t CurrDescriptorSize = DESCRIPTOR_CAST(*CurrConfigLoc, USB_Descriptor_Header_t).Size;
- *CurrConfigLoc += CurrDescriptorSize;
- *BytesRem -= CurrDescriptorSize;
+ *((uint8_t**)CurrConfigLoc) += CurrDescriptorSize;
+ *BytesRem -= CurrDescriptorSize;
}
/* Disable C linkage for C++ Compilers: */
|