Fix Sparse warnings

git-svn-id: svn://coreboot.org/openbios/openbios-devel@296 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2008-12-20 18:36:23 +00:00
parent 37c1cdbe41
commit d7208a6daf
12 changed files with 93 additions and 89 deletions

View File

@@ -69,7 +69,7 @@ static inline ducell DPOP(void) {
return du;
#else
ducell du;
du = ((ducell) ((ucell) dstack[dstackcnt--]) << bitspercell);
du = ((ducell)(ucell) dstack[dstackcnt--]) << bitspercell;
du |= (ucell) dstack[dstackcnt--];
return du;
#endif

View File

@@ -32,8 +32,8 @@ typedef long long int64_t;
typedef int32_t cell;
typedef uint32_t ucell;
typedef int64_t dcell;
typedef uint64_t ducell;
typedef long long dcell;
typedef unsigned long long ducell;
#define bitspercell (sizeof(cell)<<3)
#define bitsperdcell (sizeof(dcell)<<3)