core: Fix condition-always-true warning in trace macro.

* src/data-compat.c (old_user_read): Cast AMT.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-09-13 20:54:55 +02:00
parent 4a200146b6
commit 3009e6162e
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -187,7 +187,7 @@ old_user_read (gpgme_data_t dh, void *buffer, size_t size)
buffer, size, &amt); buffer, size, &amt);
if (err) if (err)
return TRACE_SYSRES (gpgme_error_to_errno (err)); return TRACE_SYSRES (gpgme_error_to_errno (err));
return TRACE_SYSRES (amt); return TRACE_SYSRES ((gpgme_ssize_t)amt);
} }