summaryrefslogtreecommitdiffstats
path: root/src/swap.c
diff options
context:
space:
mode:
authorChristophe Grenier <[email protected]>2013-11-01 13:38:06 +0100
committerChristophe Grenier <[email protected]>2013-11-01 13:38:06 +0100
commit7172224ac4cbe9f4c40db5df505cfe8725108e53 (patch)
tree6b0d5445d46c577975c28b8192c0af39f316d5bc /src/swap.c
parent9440623c9768c7e235be10ed595149fdb644a911 (diff)
Fix various issues reported by Coverity scan
Diffstat (limited to 'src/swap.c')
-rw-r--r--src/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/swap.c b/src/swap.c
index 488142b0..3205eec6 100644
--- a/src/swap.c
+++ b/src/swap.c
@@ -160,7 +160,7 @@ int recover_Linux_SWAP(const union swap_header *swap_header, partition_t *partit
for(j=7;j>=0;j--)
if((swap_header->magic8k.reserved[i]&(1<<j))!=(char)0)
break;
- partition->part_size=(uint64_t)((8*i+j+1)*PAGE_8K);
+ partition->part_size=(uint64_t)(8*i+j+1)*PAGE_8K;
}
break;
case UP_LINSWAP2_8K: