From cfee66b55d750a713f308f51442bb4e15416a627 Mon Sep 17 00:00:00 2001 From: Moritz Schulte Date: Wed, 16 Jul 2003 13:40:38 +0000 Subject: 2003-07-16 Moritz Schulte * src/gpg-error.h (gpg_err_code): Cast return value to gpg_err_code_t. Thanks to Ralf Schneider . (gpg_err_source): Cast return value to gpg_err_source_t. Thanks to Ralf Schneider . --- src/gpg-error.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gpg-error.h b/src/gpg-error.h index bbffeaf..dc75c82 100644 --- a/src/gpg-error.h +++ b/src/gpg-error.h @@ -467,7 +467,7 @@ gpg_error (gpg_err_code_t code) static GPG_ERR_INLINE gpg_err_code_t gpg_err_code (gpg_error_t err) { - return err & GPG_ERR_CODE_MASK; + return (gpg_err_code_t) (err & GPG_ERR_CODE_MASK); } @@ -475,7 +475,8 @@ gpg_err_code (gpg_error_t err) static GPG_ERR_INLINE gpg_err_source_t gpg_err_source (gpg_error_t err) { - return (err >> GPG_ERR_SOURCE_SHIFT) & GPG_ERR_SOURCE_MASK; + return (gpg_err_source_t) ((err >> GPG_ERR_SOURCE_SHIFT) + & GPG_ERR_SOURCE_MASK); } -- cgit v1.2.3