From: Brian Aker Date: Mon, 4 Apr 2011 22:05:47 +0000 (-0700) Subject: Trying to fix the issue of scanner not compiling on all platforms. X-Git-Tag: 0.51~15^2~46 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=347598f61d421d797468d8b2c86d5d8280cae90c;p=m6w6%2Flibmemcached Trying to fix the issue of scanner not compiling on all platforms. --- diff --git a/libmemcached/options/scanner.l b/libmemcached/options/scanner.l index c5b7962f..b53298cc 100644 --- a/libmemcached/options/scanner.l +++ b/libmemcached/options/scanner.l @@ -47,8 +47,8 @@ } \ else \ { \ - result= context->length - context->pos; \ - result > max_size ? result = max_size : 0; \ + result= (int)(context->length - context->pos); \ + (size_t)result > (size_t)max_size ? result= max_size : 0; \ memcpy(buffer, context->buf + context->pos, result); \ context->pos += result; \ } \