From 347598f61d421d797468d8b2c86d5d8280cae90c Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Mon, 4 Apr 2011 15:05:47 -0700 Subject: [PATCH] Trying to fix the issue of scanner not compiling on all platforms. --- libmemcached/options/scanner.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; \ } \ -- 2.30.2