diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2014-12-30 17:43:43 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2014-12-30 17:43:43 +0000 |
commit | 28a9dd72d6c5297f8a1442e23b80c165ba0b8486 (patch) | |
tree | 884f4e8f053d22228e96152cd3e7a3d05d30e494 /src/sg_rbuf.c | |
parent | b9d3507d55b42f80615e79ee268f875bc9b56a41 (diff) | |
download | sg3_utils-28a9dd72d6c5297f8a1442e23b80c165ba0b8486.tar.gz |
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
Diffstat (limited to 'src/sg_rbuf.c')
-rw-r--r-- | src/sg_rbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |