diff src/modplug/sndfile.cxx @ 963:9549fea94794 trunk

[svn] Warning fixes from SuSe.
author chainsaw
date Tue, 17 Apr 2007 14:45:19 -0700
parents 4095ceb0440b
children 032053ca08ab c349bd73af71
line wrap: on
line diff
--- a/src/modplug/sndfile.cxx	Mon Apr 16 01:35:24 2007 -0700
+++ b/src/modplug/sndfile.cxx	Tue Apr 17 14:45:19 2007 -0700
@@ -1176,7 +1176,8 @@
 			short int *pSample = (short int *)pIns->pSample;
 			for (UINT j=0; j<len; j+=2)
 			{
-			        *pSample++ = bswapLE16(*pSample);
+			        *pSample = bswapLE16(*pSample);
+				++pSample;
 			}
 		}
 		break;
@@ -1367,7 +1368,8 @@
 			WORD *pSampleW = (WORD *)pIns->pSample;
 			for (UINT j=0; j<len; j+=2)   // swaparoni!
 			{
-			        *pSampleW++ = bswapLE16(*pSampleW);
+			        *pSampleW = bswapLE16(*pSampleW);
+				++pSampleW;
 			}
 		}
 		break;