summaryrefslogtreecommitdiff
path: root/include/X11/ICE/ICEmsg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/X11/ICE/ICEmsg.h')
-rw-r--r--include/X11/ICE/ICEmsg.h8
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; \
}