core: Fix condition-always-true warning in trace macro.
authorWerner Koch <wk@gnupg.org>
Tue, 13 Sep 2016 18:54:55 +0000 (20:54 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 13 Sep 2016 18:54:55 +0000 (20:54 +0200)
* src/data-compat.c (old_user_read): Cast AMT.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/data-compat.c

index ec80172..5c7d543 100644 (file)
@@ -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);
 }