ref: 1e98cc5ad14e8408910ab2e570aebef5c4f6433d
parent: 17e5b805a52bf2ba8522853c538e105a842ac173
author: Jean-Marc Valin <[email protected]>
date: Fri Feb 1 05:45:45 EST 2008
oops, type safety issue resolved
--- a/libcelt/header.c
+++ b/libcelt/header.c
@@ -62,13 +62,13 @@
{
CELT_MEMSET(packet, 0, sizeof(*header));
/* FIXME: Do it in a endian-safe, alignment-safe, overflow-safe manner */
- CELT_COPY(packet, (char*)header, sizeof(*header));
+ CELT_COPY(packet, (unsigned char*)header, sizeof(*header));
return sizeof(*header);
}
int celt_header_from_packet(const unsigned char *packet, celt_uint32_t size, CELTHeader *header)
{
- CELT_COPY((char*)header, packet, sizeof(*header));
+ CELT_COPY((unsigned char*)header, packet, sizeof(*header));
return sizeof(*header);
}