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 | |
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]>.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/gpg-error.h | 5 |
2 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,11 @@ +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]>. + 2003-07-15 Moritz Schulte <[email protected]> * src/gpg-error.m4 (AM_PATH_GPG_ERROR): Use `0.0' instead of 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); } |