From 5de364163f5a7597ba2f54e37cdea493fbd1e7ff Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 10 Nov 2009 11:24:15 +0000 Subject: 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. --- LUFA/Drivers/USB/HighLevel/ConfigDescriptor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LUFA/Drivers/USB/HighLevel') 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: */ -- cgit v1.2.3