aports/community/sg3_utils/unsigned-int.patch
2022-01-28 15:25:56 +00:00

16 lines
570 B
Diff

Upstream report: https://github.com/hreinecke/sg3_utils/issues/77
diff --git a/src/sg_dd.c b/src/sg_dd.c
index 9d05c93..7662728 100644
--- a/src/sg_dd.c
+++ b/src/sg_dd.c
@@ -2399,7 +2399,7 @@ main(int argc, char * argv[])
res = blocks * blk_sz;
if (iflag.zero && iflag.ff && (blk_sz >= 4)) {
uint32_t pos = (uint32_t)skip;
- uint off;
+ unsigned int off;
for (k = 0, off = 0; k < blocks; ++k, off += blk_sz, ++pos) {
for (j = 0; j < (blk_sz - 3); j += 4)