[Armadeus-commitlog] SF.net SVN: armadeus: [684] trunk/target/linux/modules/pwm/core.c
Brought to you by:
sszy
|
From: <th...@us...> - 2007-11-16 17:06:31
|
Revision: 684
http://armadeus.svn.sourceforge.net/armadeus/?rev=684&view=rev
Author: thom25
Date: 2007-11-16 09:06:32 -0800 (Fri, 16 Nov 2007)
Log Message:
-----------
fix bug/warning u16 cast
Modified Paths:
--------------
trunk/target/linux/modules/pwm/core.c
Modified: trunk/target/linux/modules/pwm/core.c
===================================================================
--- trunk/target/linux/modules/pwm/core.c 2007-11-16 17:05:51 UTC (rev 683)
+++ trunk/target/linux/modules/pwm/core.c 2007-11-16 17:06:32 UTC (rev 684)
@@ -219,7 +219,7 @@
static inline u16 get_word_from_circbuf( struct sound_circ_buf* abuffer )
{
- u16 w = *((u16*)((abuffer->buf)[ abuffer->read ]));
+ u16 w = *((u16*)(&(abuffer->buf[ abuffer->read ])));
abuffer->read = (abuffer->read + 2) & (abuffer->size - 1);
return w;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|