r796: don't use ssize_t

This commit is contained in:
Heng Li 2018-06-20 12:45:27 -04:00
parent 2584a4149a
commit d46e68e6ad
2 changed files with 2 additions and 2 deletions

2
main.c
View File

@ -10,7 +10,7 @@
#include "getopt.h"
#endif
#define MM_VERSION "2.10-r795-dirty"
#define MM_VERSION "2.10-r796-dirty"
#ifdef __linux__
#include <sys/resource.h>

View File

@ -70,7 +70,7 @@ void sdust_buf_destroy(sdust_buf_t *buf)
static inline void shift_window(int t, kdq_t(int) *w, int T, int W, int *L, int *rw, int *rv, int *cw, int *cv)
{
int s;
if ((ssize_t)kdq_size(w) >= W - SD_WLEN + 1) { // TODO: is this right for SD_WLEN!=3?
if ((int)kdq_size(w) >= W - SD_WLEN + 1) { // TODO: is this right for SD_WLEN!=3?
s = *kdq_shift(int, w);
*rw -= --cw[s];
if (*L > (int)kdq_size(w))