r796: don't use ssize_t
This commit is contained in:
parent
2584a4149a
commit
d46e68e6ad
2
main.c
2
main.c
|
|
@ -10,7 +10,7 @@
|
||||||
#include "getopt.h"
|
#include "getopt.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MM_VERSION "2.10-r795-dirty"
|
#define MM_VERSION "2.10-r796-dirty"
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
|
|
||||||
2
sdust.c
2
sdust.c
|
|
@ -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)
|
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;
|
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);
|
s = *kdq_shift(int, w);
|
||||||
*rw -= --cw[s];
|
*rw -= --cw[s];
|
||||||
if (*L > (int)kdq_size(w))
|
if (*L > (int)kdq_size(w))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue