Fix comparisons of differently signed integers in contrib/blast.
This commit is contained in:
parent
b8522e0264
commit
b6c5057ca1
@ -23,6 +23,7 @@
|
|||||||
* 1.0 12 Feb 2003 - First version
|
* 1.0 12 Feb 2003 - First version
|
||||||
* 1.1 16 Feb 2003 - Fixed distance check for > 4 GB uncompressed data
|
* 1.1 16 Feb 2003 - Fixed distance check for > 4 GB uncompressed data
|
||||||
* 1.2 24 Oct 2012 - Add note about using binary mode in stdio
|
* 1.2 24 Oct 2012 - Add note about using binary mode in stdio
|
||||||
|
* - Fix comparisons of differently signed integers
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <setjmp.h> /* for setjmp(), longjmp(), and jmp_buf */
|
#include <setjmp.h> /* for setjmp(), longjmp(), and jmp_buf */
|
||||||
@ -280,7 +281,7 @@ local int decomp(struct state *s)
|
|||||||
int dict; /* log2(dictionary size) - 6 */
|
int dict; /* log2(dictionary size) - 6 */
|
||||||
int symbol; /* decoded symbol, extra bits for distance */
|
int symbol; /* decoded symbol, extra bits for distance */
|
||||||
int len; /* length for copy */
|
int len; /* length for copy */
|
||||||
int dist; /* distance for copy */
|
unsigned dist; /* distance for copy */
|
||||||
int copy; /* copy counter */
|
int copy; /* copy counter */
|
||||||
unsigned char *from, *to; /* copy pointers */
|
unsigned char *from, *to; /* copy pointers */
|
||||||
static int virgin = 1; /* build tables once */
|
static int virgin = 1; /* build tables once */
|
||||||
|
Loading…
Reference in New Issue
Block a user