Commit 4e247307 authored by Eric Petit's avatar Eric Petit

nuv.c: compile fix (for big endian platforms)

parent 5dcb0357
......@@ -524,10 +524,10 @@ static inline void GetDoubleLE( double *pd, void *src )
{
/* FIXME works only if sizeof(double) == 8 */
#ifdef WORDS_BIGENDIAN
uint8_t *p = (uint8_t*)pd;
uint8_t *p = (uint8_t*)pd, *q = (uint8_t*)src;
int i;
for( i = 0; i < 8; i++ )
p[i] = src[7-i];
p[i] = q[7-i];
#else
memcpy( pd, src, 8 );
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment