diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-09 17:24:16 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-09 17:24:16 -0700 |
commit | 95cb4dcd618774b3f7b5b915c5ce5aa72f853b53 (patch) | |
tree | 5855871af9beca9549fe978bac71434e53f3828f /src/SMlibint.h | |
parent | 5a06ff257f72a629539f23b35026fbcdb8bb372e (diff) |
Fix some clang warnings about integer size/sign conversions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/SMlibint.h')
-rw-r--r-- | src/SMlibint.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMlibint.h b/src/SMlibint.h index 52c72e7..7946920 100644 --- a/src/SMlibint.h +++ b/src/SMlibint.h @@ -157,7 +157,7 @@ in this Software without prior written authorization from The Open Group. #define STORE_ARRAY8(_pBuf, _len, _array8) \ { \ - STORE_CARD32 (_pBuf, _len); \ + STORE_CARD32 (_pBuf, (CARD32) _len); \ if (_len) \ memcpy (_pBuf, _array8, _len); \ _pBuf += _len + PAD64 (4 + _len); \ @@ -240,7 +240,7 @@ in this Software without prior written authorization from The Open Group. #define SKIP_LISTOF_PROPERTY(_pBuf, _swap) \ { \ - int _i, _j; \ + CARD32 _i, _j; \ CARD32 _count; \ EXTRACT_CARD32 (_pBuf, _swap, _count); \ _pBuf += 4; \ |