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:
parent
4a200146b6
commit
3009e6162e
@ -187,7 +187,7 @@ old_user_read (gpgme_data_t dh, void *buffer, size_t size)
|
||||
buffer, size, &amt);
|
||||
if (err)
|
||||
return TRACE_SYSRES (gpgme_error_to_errno (err));
|
||||
return TRACE_SYSRES (amt);
|
||||
return TRACE_SYSRES ((gpgme_ssize_t)amt);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user