linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH blktests] Fix build failure for discontiguous-io on 32-bit platforms
@ 2018-10-29 16:15 Theodore Ts'o
  2018-10-29 16:26 ` Bart Van Assche
  0 siblings, 1 reply; 5+ messages in thread
From: Theodore Ts'o @ 2018-10-29 16:15 UTC (permalink / raw)
  To: linux-block; +Cc: Theodore Ts'o

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
---
 src/discontiguous-io.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/discontiguous-io.cpp b/src/discontiguous-io.cpp
index 5e0ee0f..a59c18d 100644
--- a/src/discontiguous-io.cpp
+++ b/src/discontiguous-io.cpp
@@ -291,7 +291,7 @@ int main(int argc, char **argv)
 			unsigned char *p = &*buf.begin();
 			for (int i = 0; i < len / 4; i++)
 				iov.append(p + 4 + i * 8,
-					   std::min(4ul, len - i * 4));
+					   std::min(4ul, (unsigned long) len - i * 4));
 		} else {
 			iov.append(&*buf.begin(), buf.size());
 		}
-- 
2.18.0.rc0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-30  8:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-29 16:15 [PATCH blktests] Fix build failure for discontiguous-io on 32-bit platforms Theodore Ts'o
2018-10-29 16:26 ` Bart Van Assche
2018-10-29 21:08   ` Theodore Y. Ts'o
2018-10-29 21:32     ` Bart Van Assche
2018-10-29 23:22       ` Theodore Y. Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).