Update of /cvsroot/alsa/alsa-lib/src/instr
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29021/src/instr

Modified Files:
        iwffff.c 
Log Message:
Fixed bugs detected by Intel compiler

Index: iwffff.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/instr/iwffff.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- iwffff.c    15 Nov 2002 14:40:26 -0000      1.22
+++ iwffff.c    20 Apr 2004 13:42:48 -0000      1.23
@@ -638,10 +638,10 @@
                                gwave->format |= IWFFFF_WAVE_ROM;
                                gwave->address.memory = snd_LE_to_host_32(*(((unsigned 
int *)wave) + 8/4));
                        } else {
-                               gwave->share_id[1] = iwf->share_id1;
-                               gwave->share_id[2] = iwf->share_id2;
-                               gwave->share_id[3] = iwf->share_id3;
-                               gwave->share_id[4] = snd_LE_to_host_32(*(((unsigned 
int *)wave) + 8/4));
+                               gwave->share_id[0] = iwf->share_id1;
+                               gwave->share_id[1] = iwf->share_id2;
+                               gwave->share_id[2] = iwf->share_id3;
+                               gwave->share_id[3] = snd_LE_to_host_32(*(((unsigned 
int *)wave) + 8/4));
                                result = load_iw_wave(iwf, gwave->share_id[2], 
gwave->size, &gwave->address.ptr);
                                if (result < 0) {
                                        free_wave(gwave);
@@ -874,10 +874,10 @@
                        xwave = (iwffff_xwave_t *)ptr;
                        ptr += sizeof(*xwave);
                        xwave->stype = IWFFFF_STRU_WAVE;
+                       xwave->share_id[0] = __cpu_to_le32(wave->share_id[0]);
                        xwave->share_id[1] = __cpu_to_le32(wave->share_id[1]);
                        xwave->share_id[2] = __cpu_to_le32(wave->share_id[2]);
                        xwave->share_id[3] = __cpu_to_le32(wave->share_id[3]);
-                       xwave->share_id[4] = __cpu_to_le32(wave->share_id[4]);
                        xwave->format = __cpu_to_le32(wave->format);
                        xwave->size = __cpu_to_le32(wave->size);
                        xwave->start = __cpu_to_le32(wave->start);



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to