aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encr-data.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/encr-data.c')
-rw-r--r--g10/encr-data.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/encr-data.c b/g10/encr-data.c
index a3a9728cb..8347e2a35 100644
--- a/g10/encr-data.c
+++ b/g10/encr-data.c
@@ -298,7 +298,8 @@ decode_filter( void *opaque, int control, IOBUF a, byte *buf, size_t *ret_len)
if( control == IOBUFCTRL_UNDERFLOW ) {
assert(a);
n = iobuf_read( a, buf, size );
- if( n == -1 ) n = 0;
+ if (n == (size_t)(-1))
+ n = 0;
if( n ) {
if (fc->cipher_hd)
cipher_decrypt( fc->cipher_hd, buf, buf, n);