From 28a9dd72d6c5297f8a1442e23b80c165ba0b8486 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Tue, 30 Dec 2014 17:43:43 +0000 Subject: introduce uintptr_t in place of unsigned long, w7 64 bit requirement git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@625 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_rbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sg_rbuf.c') diff --git a/src/sg_rbuf.c b/src/sg_rbuf.c index 3ab94c4b..7c246fdc 100644 --- a/src/sg_rbuf.c +++ b/src/sg_rbuf.c @@ -53,7 +53,7 @@ #endif -static const char * version_str = "4.91 20140425"; +static const char * version_str = "4.92 20141227"; static struct option long_options[] = { {"buffer", required_argument, 0, 'b'}, @@ -514,7 +514,7 @@ main(int argc, char * argv[]) } /* perhaps use posix_memalign() instead */ if (op->do_dio) /* align to page boundary */ - rbBuff= (unsigned char *)(((unsigned long)rawp + psz - 1) & + rbBuff= (unsigned char *)(((uintptr_t)rawp + psz - 1) & (~(psz - 1))); else rbBuff = (unsigned char *)rawp; -- cgit v1.2.3