diff options
author | Moritz Schulte <[email protected]> | 2003-07-16 13:40:38 +0000 |
---|---|---|
committer | Moritz Schulte <[email protected]> | 2003-07-16 13:40:38 +0000 |
commit | cfee66b55d750a713f308f51442bb4e15416a627 (patch) | |
tree | 0e166beda9a8867c71a50a8a74d8cb82f38e6d9b /src | |
parent | 2003-07-15 Moritz Schulte <[email protected]> (diff) | |
download | libgpg-error-cfee66b55d750a713f308f51442bb4e15416a627.tar.gz libgpg-error-cfee66b55d750a713f308f51442bb4e15416a627.zip |
2003-07-16 Moritz Schulte <[email protected]>
* src/gpg-error.h (gpg_err_code): Cast return value to
gpg_err_code_t. Thanks to Ralf Schneider
<[email protected]>.
(gpg_err_source): Cast return value to gpg_err_source_t. Thanks
to Ralf Schneider <[email protected]>.
Diffstat (limited to 'src')
-rw-r--r-- | src/gpg-error.h | 5 |
1 files changed, 3 insertions, 2 deletions
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); } |