From 95cb4dcd618774b3f7b5b915c5ce5aa72f853b53 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 9 Aug 2013 17:24:16 -0700 Subject: Fix some clang warnings about integer size/sign conversions Signed-off-by: Alan Coopersmith --- src/SMlibint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/SMlibint.h') 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; \ -- cgit v1.2.3