summaryrefslogtreecommitdiff
path: root/audio/stymulator/files/patch-stsoundlib_lzh_lzhlib.cpp
blob: 985c11dde8f787b5a0d7978d590c8977bbcd99a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- stsoundlib/lzh/lzhlib.cpp.orig	2016-07-26 16:04:42 UTC
+++ stsoundlib/lzh/lzhlib.cpp
@@ -413,10 +413,10 @@ bool	CLzhDepacker::LzUnpack(void *pSrc,i
 
     decode_start ();
 
-	int origsize = dstSize;
+	uint origsize = dstSize;
     while (origsize != 0)
     {
-        int n = (uint) ((origsize > DICSIZ) ? DICSIZ : origsize);
+        uint n = (origsize > DICSIZ) ? DICSIZ : origsize;
         decode (n, outbuf);
 		if (with_error)
 			break;