Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix wrong encoding of error codes on Windows introduced yesterday
  • Loading branch information
feeley committed Jan 22, 2016
1 parent dda6dc2 commit 7052355
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/gambit.h.in
Expand Up @@ -6208,11 +6208,11 @@ ___P((___global_state ___gs),()); ___END_C_LINKAGE

#define ___HRESULT_ERR(hresult) \
(((hresult)&___MASK(___ERR_CODE,25)) | \
(((hresult)&___MASK(unsigned ___ERR_CODE,27))>>2))
(((hresult)&~___MASK(___ERR_CODE,27))>>2))

#define ___HRESULT_FROM_ERR_CODE(err) \
(((err)&___MASK(___ERR_CODE,25)) | \
(((err)&___MASK(unsigned ___ERR_CODE,25))<<2))
(((err)&~___MASK(unsigned ___ERR_CODE,25))<<2))

#define ___WIN32_ERR(win32err) \
___HRESULT_ERR(HRESULT_FROM_WIN32(win32err))
Expand Down
4 changes: 2 additions & 2 deletions include/stamp.h
Expand Up @@ -2,5 +2,5 @@
* Time stamp of last source code repository commit.
*/

#define ___STAMP_YMD 20160120
#define ___STAMP_HMS 185918
#define ___STAMP_YMD 20160122
#define ___STAMP_HMS 20137

0 comments on commit 7052355

Please sign in to comment.