aboutsummaryrefslogtreecommitdiffstats
path: root/community/sg3_utils/unsigned-int.patch
blob: ca6d8111f07dc4b2720a2a6bbf05b4e17131e575 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)