changeset 2226:cb9802386cda

eliminate warning.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Fri, 14 Dec 2007 22:13:44 +0900
parents 6b45e6441fd9
children 573436f1a56e
files src/tta/ttadec.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/tta/ttadec.c	Wed Dec 12 19:37:42 2007 +0100
+++ b/src/tta/ttadec.c	Fri Dec 14 22:13:44 2007 +0900
@@ -476,7 +476,7 @@
 	byte *p = buffer;
 	decoder *dec = tta;
 	int *prev = cache;
-	int value, res;
+	int value, value_tmp, res;
 
 	for (res = 0; p < buffer + pcm_buffer_size;) {
 		fltst *fst = &dec->fst;
@@ -529,8 +529,8 @@
 			else if (rice->sum0 > shift_16[rice->k0 + 1])
 			rice->k0++;
 		}
-
-		value = DEC(value);
+		value_tmp = DEC(value);
+		value = value_tmp;
 
 		// decompress stage 1: adaptive hybrid filter
 		hybrid_filter(fst, &value);