diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-08 22:58:46 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-08 22:58:46 -0700 |
commit | 6d6aa84dc6acb2daa3ef7e20942c38a1416bf543 (patch) | |
tree | 0842443d3462c5f786cab519d4b0c9d0d9483a4b /include | |
parent | 9450bb648ef98efd6f08ea7d14ab8b9ea6e7bb54 (diff) |
Cast assignments in IceErrorHeader() macro
Clears many clang warnings about implicit conversions losing
integer precision, such as from storing ints into CARD8 or CARD16.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/X11/ICE/ICEmsg.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/X11/ICE/ICEmsg.h b/include/X11/ICE/ICEmsg.h index 2cb9112..f6e7121 100644 --- a/include/X11/ICE/ICEmsg.h +++ b/include/X11/ICE/ICEmsg.h @@ -161,10 +161,10 @@ extern IcePaAuthStatus _IcePaMagicCookie1Proc ( IceGetHeader (_iceConn, _offendingMajorOpcode, ICE_Error, \ SIZEOF (iceErrorMsg), iceErrorMsg, _pMsg); \ _pMsg->length += (_dataLength); \ - _pMsg->offendingMinorOpcode = _offendingMinorOpcode; \ - _pMsg->severity = _severity; \ - _pMsg->offendingSequenceNum = _offendingSequenceNum; \ - _pMsg->errorClass = _errorClass; \ + _pMsg->offendingMinorOpcode = (CARD8) _offendingMinorOpcode; \ + _pMsg->severity = (CARD8) _severity; \ + _pMsg->offendingSequenceNum = (CARD32) _offendingSequenceNum; \ + _pMsg->errorClass = (CARD16) _errorClass; \ } |